/* =========================================================
   TMS v10.2 可搜索下拉组件样式
   组件层：原生 select 仍保留数据与事件，只隐藏视觉；面板挂载 body 防止弹窗裁剪。
   ========================================================= */
.tms-search-select{position:relative;width:100%;min-width:0;margin-bottom:4px}.tms-search-native{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;min-height:1px!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;border:0!important}.tms-search-trigger{width:100%;min-height:var(--tms-control-height,38px);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 11px;border:1px solid var(--tms-border,#dfe5ec);border-radius:var(--tms-control-radius,8px);background:#fff;color:var(--tms-text-primary,#172033);font-size:13px;line-height:1.35;cursor:pointer;user-select:none;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.tms-search-trigger-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tms-search-trigger>i{flex:0 0 auto;color:#718096;font-size:17px;transition:transform .15s ease}.tms-search-select.is-open .tms-search-trigger{border-color:var(--tms-brand,#1677ff);box-shadow:0 0 0 3px color-mix(in srgb,var(--tms-brand,#1677ff) 16%,transparent)}.tms-search-select.is-open .tms-search-trigger>i{transform:rotate(180deg)}.tms-search-select.is-disabled .tms-search-trigger{background:#f2f4f7;color:#98a2b3;cursor:not-allowed;border-color:#e4e7ec}.tms-search-trigger:focus-visible{outline:2px solid var(--tms-brand,#1677ff);outline-offset:1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tms-brand,#1677ff) 14%,transparent)}
.tms-search-panel{position:fixed;z-index:16000;padding:7px;border:1px solid #dfe5ec;border-radius:9px;background:#fff;color:#172033;box-shadow:0 14px 36px rgba(15,23,42,.16);box-sizing:border-box}.tms-search-panel.hidden{display:none!important}.tms-search-box{height:36px;display:grid;grid-template-columns:20px 1fr 26px;align-items:center;gap:4px;padding:0 7px;border:1px solid #dfe5ec;border-radius:7px;background:#fff}.tms-search-box:focus-within{border-color:var(--tms-brand,#1677ff);box-shadow:0 0 0 3px color-mix(in srgb,var(--tms-brand,#1677ff) 12%,transparent)}.tms-search-box>i{color:#8492a6;font-size:15px}.tms-search-box input{width:100%!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0 4px!important;border:0!important;outline:0!important;box-shadow:none!important;background:#fff!important;color:#172033!important;font-size:12.5px!important;border-radius:0!important}.tms-search-box input::placeholder{color:#98a2b3!important}.tms-search-clear{width:26px!important;height:26px!important;min-height:26px!important;padding:0!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#98a2b3!important;box-shadow:none!important;display:grid!important;place-items:center!important}.tms-search-clear:hover{background:#f2f4f7!important;color:#475467!important;transform:none!important}.tms-search-list{max-height:286px;overflow:auto;padding:5px 0 1px;overscroll-behavior:contain}.tms-search-option{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border-radius:6px;color:#344054;font-size:12.5px;line-height:1.4;cursor:pointer}.tms-search-option>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tms-search-option>i{flex:0 0 auto;color:var(--tms-brand,#1677ff);font-size:15px}.tms-search-option:hover,.tms-search-option.active{background:color-mix(in srgb,var(--tms-brand,#1677ff) 8%,#fff);color:#1d2939}.tms-search-option.selected{background:color-mix(in srgb,var(--tms-brand,#1677ff) 11%,#fff);color:var(--tms-brand-strong,#0958d9);font-weight:600}.tms-search-option.disabled{color:#b2b8c2;cursor:not-allowed;background:transparent}.tms-search-empty{padding:24px 12px;text-align:center;color:#98a2b3;font-size:12.5px}.tms-search-empty.hidden,.tms-search-list.hidden{display:none!important}
/* 新建任务弹窗保持原布局：增强下拉只替换视觉控件，不改变 Grid。 */
.task-create-v974 .tms-search-select{margin-bottom:4px}.task-create-v974 .route-quick-control-v974 .tms-search-select{margin:0}.task-create-v974 .shared-common-grid .tms-search-trigger,.task-create-v974 .filter-grid .tms-search-trigger{min-height:var(--tms-control-height,38px)}
@media(max-width:700px){.tms-search-panel{max-width:calc(100vw - 16px)!important}.tms-search-list{max-height:240px}}

/* v10.2: 颜色最终由 theme-safety-v102.css 控制，确保两套主题下始终白底。 */
