/* DataDict combo editors. Popups live inside the native modal's top layer. */
.record-dialog .legacy-field-row .dictionary-combo {
  display: flex;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}
.record-dialog .dictionary-combo input[data-field-name] {
  flex: 1;
  min-width: 0;
  width: 0;
  border-radius: 2px 0 0 2px;
  border-right: 0;
}
.record-dialog .dictionary-combo .dictionary-toggle {
  flex: 0 0 27px;
  width: 27px;
  min-width: 27px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #b9cddd;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(#fafcff, #e4eef9);
  color: #254e79;
}
.record-dialog .dictionary-toggle:hover:not(:disabled) { background: #d5e8ff; }
.record-dialog .dictionary-toggle:disabled { cursor: default; color: #8a99a8; background: #edf2f7; }
.dictionary-popup {
  position: fixed;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #7e9cbb;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 5px 18px #17334d35;
  color: #1c3550;
  font: 13px/1.7 "Microsoft YaHei", "Segoe UI", sans-serif;
}
.dictionary-popup-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 3px 0; }
.dictionary-option { display: flex; gap: 8px; align-items: center; min-height: 29px; padding: 3px 9px; cursor: pointer; overflow-wrap: anywhere; }
.dictionary-option[aria-selected="true"] { background: #e5f0ff; color: #164c86; }
.dictionary-option.active { background: #2167b2; color: white; }
.dictionary-option input[type="checkbox"] { width: 15px; height: 15px; margin: 0; flex: 0 0 15px; accent-color: #2167b2; }
.dictionary-option .empty-option { color: inherit; opacity: .7; }
.dictionary-popup-message { padding: 12px; color: #526c86; }
.dictionary-popup-filter { display: flex; flex: none; padding: 7px; border-bottom: 1px solid #dce7f2; }
.record-dialog .dictionary-popup-filter input { width: 100%; min-width: 0; padding: 5px 7px; border: 1px solid #b9cddd; border-radius: 2px; }
.dictionary-popup-footer { display: flex; flex: none; justify-content: flex-end; gap: 7px; padding: 7px; border-top: 1px solid #dce7f2; background: #f5f9fe; }
.dictionary-popup-footer button { min-height: 28px; padding: 3px 13px; border: 1px solid #b9cddd; border-radius: 3px; background: #fff; color: #264f7a; font-size: 12px; }
.dictionary-popup-footer button[data-lookup-confirm] { background: #2167b2; color: #fff; border-color: #2167b2; }
