/* 统一下拉框：把原生 select 换成可完全控制样式的触发器 + 自绘面板 */
.uisel { position: relative; display: inline-block; width: 100%; vertical-align: middle; }

.uisel-native {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; border: 0; padding: 0; margin: 0;
}

.uisel-trigger {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 38px;
  padding: 0 32px 0 12px; border: 1px solid #e3e8f0; border-radius: 9px;
  background: #fff; color: #1b2537; font: inherit; font-size: 13px; line-height: 1.2;
  text-align: left; cursor: pointer; position: relative;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.uisel-trigger.is-compact { padding-right: 26px; }
.uisel-trigger.is-compact .uisel-caret { right: 9px; width: 7px; height: 7px; }
.uisel-trigger:hover { border-color: #cdd6e6; }
.uisel-trigger:focus-visible,
.uisel-trigger[aria-expanded="true"] {
  outline: none; border-color: #3b5bff; box-shadow: 0 0 0 3px rgba(59, 91, 255, .12);
}
.uisel-trigger[disabled] { background: #f6f8fb; color: #98a2b3; cursor: not-allowed; border-color: #e9edf4; }

.uisel-label {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600;
}
.uisel-label.is-empty { color: #98a2b3; font-weight: 500; }

.uisel-caret {
  position: absolute; right: 11px; top: 50%; width: 8px; height: 8px; margin-top: -5px;
  border-right: 1.6px solid #8791a5; border-bottom: 1.6px solid #8791a5;
  transform: rotate(45deg); transition: transform .18s, border-color .16s;
}
.uisel-trigger[aria-expanded="true"] .uisel-caret {
  transform: rotate(-135deg); margin-top: -1px; border-color: #3b5bff;
}

.uisel-panel {
  position: fixed; z-index: 9000; min-width: 180px; max-height: 288px; overflow: auto;
  padding: 6px; border: 1px solid #e3e8f0; border-radius: 11px; background: #fff;
  box-shadow: 0 12px 32px rgba(20, 32, 51, .14), 0 2px 8px rgba(20, 32, 51, .06);
  max-width: min(420px, 94vw);
  
}
@keyframes uisel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.uisel-opt {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 10px;
  border-radius: 7px; color: #1b2537; font-size: 13px; line-height: 1.45;
  cursor: pointer; white-space: normal;
}
.uisel-opt:hover { background: #f4f7ff; }
.uisel-opt.is-active { background: #eef3ff; }
.uisel-opt.is-selected { color: #3b5bff; font-weight: 600; background: #eef3ff; }
.uisel-opt .uisel-tick {
  flex: 0 0 auto; width: 12px; font-size: 12px; color: #3b5bff; text-align: center;
}
.uisel-opt .uisel-tick.is-blank { visibility: hidden; }
.uisel-opt.is-disabled { color: #b3bccb; cursor: not-allowed; background: transparent; }
.uisel-empty { padding: 12px 10px; color: #98a2b3; font-size: 12.5px; }
