/* Canonical value picker: exact Openings-mode popup contract. */
.global-floating-popup,
#master-floating-popup {
  position: fixed;
  z-index: 2147483000;
  display: none;
  box-sizing: border-box;
  min-width: 110px;
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.global-floating-popup li,
#master-floating-popup li {
  box-sizing: border-box;
  min-height: 34px;
  padding: 8px 12px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  text-align: right;
  color: #1e293b;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  font-family: var(--pbs-table-row-font-family, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif) !important;
  font-size: var(--pbs-table-row-font-size, 14px) !important;
  font-weight: var(--pbs-table-row-font-weight, 400) !important;
  line-height: var(--pbs-table-row-line-height, 1.2) !important;
  font-variant-numeric: tabular-nums;
  transition: background 0.1s, color 0.1s;
}
.global-floating-popup li:last-child,
#master-floating-popup li:last-child { border-bottom: none; }
.global-floating-popup li:hover,
#master-floating-popup li:hover,
.global-floating-popup li.coefficient-popup-primary:hover,
#master-floating-popup li.coefficient-popup-primary:hover {
  background: #001f3f;
  color: #ffffff;
}

/* v1.3.339: content-sized geometry with conditional real scrollbar compensation. */
.global-floating-popup,
#master-floating-popup,
#fc-project-value-popup {
}
.global-floating-popup > button,
#fc-project-value-popup > button {
  box-sizing: border-box;
  min-height: 34px;
  padding: 8px 12px;
  margin: 0;
  white-space: nowrap;
  font-family: var(--pbs-table-row-font-family, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif) !important;
  font-size: var(--pbs-table-row-font-size, 14px) !important;
  font-weight: var(--pbs-table-row-font-weight, 400) !important;
  line-height: var(--pbs-table-row-line-height, 1.2) !important;
  font-variant-numeric: tabular-nums;
}

/* v1.3.342: one central alignment/wrapping contract. */
.global-floating-popup li,
#master-floating-popup li,
.global-floating-popup > button,
#fc-project-value-popup > button {
  justify-content:flex-end !important;
  text-align:right !important;
  white-space:nowrap !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  flex-wrap:nowrap !important;
}
#master-floating-popup[data-picker-kind="opening-description"] li {
  justify-content:flex-start !important;
  text-align:left !important;
}

/* v1.3.343: one authoritative visual contract for every textbox value picker. */
:root {
  --pbs-value-picker-row-height: calc(var(--pbs-table-row-height, 32px) * 0.8);
  --pbs-value-picker-row-separator: #f1f5f9;
  --pbs-value-picker-hover-background: #001f3f;
  --pbs-value-picker-hover-color: #ffffff;
}

.global-floating-popup > li,
#master-floating-popup > li,
.global-floating-popup > button,
#master-floating-popup > button,
#fc-project-value-popup > button {
  box-sizing: border-box !important;
  width: 100% !important;
  height: var(--pbs-value-picker-row-height) !important;
  min-height: var(--pbs-value-picker-row-height) !important;
  max-height: var(--pbs-value-picker-row-height) !important;
  padding: 0 12px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pbs-value-picker-row-separator) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  cursor: pointer !important;
  font-family: var(--pbs-table-row-font-family, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif) !important;
  font-size: var(--pbs-table-row-font-size, 14px) !important;
  font-weight: var(--pbs-table-row-font-weight, 400) !important;
  line-height: var(--pbs-table-row-line-height, 1.2) !important;
  font-variant-numeric: tabular-nums !important;
}

.global-floating-popup > li:last-child,
#master-floating-popup > li:last-child,
.global-floating-popup > button:last-child,
#master-floating-popup > button:last-child,
#fc-project-value-popup > button:last-child {
  border-bottom: 0 !important;
}

.global-floating-popup > li:hover,
#master-floating-popup > li:hover,
.global-floating-popup > button:hover,
#master-floating-popup > button:hover,
#fc-project-value-popup > button:hover,
.global-floating-popup > li:focus,
#master-floating-popup > li:focus,
.global-floating-popup > button:focus,
#master-floating-popup > button:focus,
#fc-project-value-popup > button:focus {
  background: var(--pbs-value-picker-hover-background) !important;
  color: var(--pbs-value-picker-hover-color) !important;
  outline: none !important;
}

/* The only alignment exception: opening descriptions are textual. */
#master-floating-popup[data-picker-kind="opening-description"] > li,
.global-floating-popup[data-picker-kind="opening-description"] > li,
#master-floating-popup[data-picker-kind="opening-description"] > button,
.global-floating-popup[data-picker-kind="opening-description"] > button {
  justify-content: flex-start !important;
  text-align: left !important;
}
