
:root{
  --pbs-popup-font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
  --pbs-popup-font-size:14px;
  --pbs-popup-font-weight:400;
  --pbs-popup-header-weight:600;
  --pbs-popup-cell-pad-x:8px;
  --pbs-popup-cell-pad-y:3px;
  --pbs-popup-row-height:28px;
  --pbs-popup-header-bg:#001f3f;
  --pbs-popup-header-fg:#fff;
  --pbs-popup-grid:#cbd5e1;
}
.pbs-lookup-popup,
.pbs-lookup-popup *{
  font-family:var(--pbs-popup-font-family)!important;
  font-size:var(--pbs-popup-font-size)!important;
  box-sizing:border-box;
}
.pbs-lookup-popup{--pbs-popup-scrollbar-width:0px;color:#111827;background:#fff}
.pbs-lookup-popup .risk-k1-titlebar,
.pbs-lookup-popup .coeff-popup-titlebar{
  padding-left:var(--pbs-popup-cell-pad-x)!important;
  padding-right:var(--pbs-popup-cell-pad-x)!important;
  background:var(--pbs-popup-header-bg)!important;
  color:var(--pbs-popup-header-fg)!important;
  font-weight:var(--pbs-popup-header-weight)!important;
}
.pbs-lookup-popup .risk-k1-filter-row,
.pbs-lookup-popup .coeff-popup-filter-row{
  padding:var(--pbs-popup-cell-pad-y) 0!important;
  background:var(--pbs-popup-header-bg)!important;
  color:var(--pbs-popup-header-fg)!important;
  border-top:1px solid rgba(255,255,255,.18)!important;
  border-bottom:1px solid var(--pbs-popup-grid)!important;
}
.pbs-lookup-popup .risk-k1-filter-row label,
.pbs-lookup-popup .coeff-filter-label{
  padding-left:var(--pbs-popup-cell-pad-x)!important;
  padding-right:var(--pbs-popup-cell-pad-x)!important;
  text-align:left!important;
  color:var(--pbs-popup-header-fg)!important;
  font-weight:var(--pbs-popup-header-weight)!important;
}
.pbs-lookup-popup .risk-k1-filter-row input,
.pbs-lookup-popup #coeff-filter-input{
  font-family:var(--pbs-popup-font-family)!important;
  font-size:var(--pbs-popup-font-size)!important;
  font-weight:var(--pbs-popup-header-weight)!important;
}
.pbs-lookup-popup .risk-k1-table-head,
.pbs-lookup-popup .coeff-popup-header-table{
  width:calc(100% - var(--pbs-popup-scrollbar-width))!important;
  margin-right:var(--pbs-popup-scrollbar-width)!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}
.pbs-lookup-popup .risk-k1-scroll table,
.pbs-lookup-popup .coeff-popup-scroll-body table{
  width:100%!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}
.pbs-lookup-popup .risk-k1-table-head th,
.pbs-lookup-popup .coeff-popup-header-table th{
  height:32px!important;
  padding:var(--pbs-popup-cell-pad-y) var(--pbs-popup-cell-pad-x)!important;
  background:var(--pbs-popup-header-bg)!important;
  color:var(--pbs-popup-header-fg)!important;
  font-weight:var(--pbs-popup-header-weight)!important;
  border-right:1px solid rgba(255,255,255,.30)!important;
  border-bottom:1px solid var(--pbs-popup-grid)!important;
  vertical-align:middle!important;
}
.pbs-lookup-popup .risk-k1-table-head th:last-child,
.pbs-lookup-popup .coeff-popup-header-table th:last-child{border-right:0!important}
.pbs-lookup-popup .risk-k1-scroll td,
.pbs-lookup-popup .coeff-popup-scroll-body td{
  height:var(--pbs-popup-row-height)!important;
  min-height:var(--pbs-popup-row-height)!important;
  max-height:var(--pbs-popup-row-height)!important;
  padding:var(--pbs-popup-cell-pad-y) var(--pbs-popup-cell-pad-x)!important;
  font-family:var(--pbs-popup-font-family)!important;
  font-size:var(--pbs-popup-font-size)!important;
  font-weight:var(--pbs-popup-font-weight)!important;
  border-right:1px solid var(--pbs-popup-grid)!important;
  border-bottom:1px solid var(--pbs-popup-grid)!important;
  vertical-align:middle!important;
}
.pbs-lookup-popup .risk-k1-scroll td:last-child,
.pbs-lookup-popup .coeff-popup-scroll-body td:last-child{border-right:0!important}


/* Unified borderless lookup-table interior. Keep only the popup's outer border. */
.pbs-lookup-popup{background:var(--pbs-popup-header-bg)!important}
.pbs-lookup-popup .risk-k1-filter-row,
.pbs-lookup-popup .coeff-popup-filter-row,
.pbs-lookup-popup .risk-k1-table-head th,
.pbs-lookup-popup .coeff-popup-header-table th,
.pbs-lookup-popup .risk-k1-scroll td,
.pbs-lookup-popup .coeff-popup-scroll-body td{
  border:0!important;
}
.pbs-lookup-popup .risk-k1-table-head,
.pbs-lookup-popup .coeff-popup-header-table{
  background:var(--pbs-popup-header-bg)!important;
}
.pbs-lookup-popup .risk-k1-scroll,
.pbs-lookup-popup .coeff-popup-scroll-body{
  background:#fff!important;
  scrollbar-gutter:stable;
  overflow-y:scroll!important;
  overflow-x:hidden!important;
}
/* Reserve the resize-corner footprint so the vertical scrollbar's bottom button is unobstructed. */
.pbs-lookup-popup .risk-k1-scroll{margin-bottom:16px!important}

.pbs-lookup-popup .coeff-popup-scroll-body{margin-bottom:1px!important}
.pbs-lookup-popup .pbs-fc-shz-0 .pbs-fc-shz-mark{stroke:#d92d20!important}


/* Flat lookup controls and exact header alignment. */
.pbs-lookup-popup button{
  appearance:none!important;
  -webkit-appearance:none!important;
  box-shadow:none!important;
  text-shadow:none!important;
  background-image:none!important;
  border-style:solid!important;
  filter:none!important;
}
.pbs-lookup-popup .risk-k1-table-head,
.pbs-lookup-popup .coeff-popup-header-table{
  box-sizing:content-box!important;
  border-right:var(--pbs-popup-scrollbar-width) solid var(--pbs-popup-header-bg)!important;
  margin-right:0!important;
  background:var(--pbs-popup-header-bg)!important;
}
.pbs-lookup-popup .coeff-popup-header-table th:first-child{
  text-align:left!important;
}
.pbs-lookup-popup .coeff-popup-titlebar,
.pbs-lookup-popup .coeff-popup-titlebar span,
.pbs-lookup-popup .coeff-popup-titlebar em,
.pbs-lookup-popup .coeff-popup-titlebar sub{
  font-weight:400!important;
}


/* Authoritative flat popup chrome and scrollbar-gutter contract. */
.pbs-lookup-popup .coeff-popup-titlebar{background:var(--pbs-popup-header-bg)!important;border:0!important}
.pbs-lookup-popup .coeff-popup-titlebar .coeff-popup-title strong{font-weight:600!important}
.pbs-lookup-popup .coeff-popup-titlebar .coeff-popup-title-detail,
.pbs-lookup-popup .coeff-popup-titlebar .coeff-popup-title-detail em,
.pbs-lookup-popup .coeff-popup-titlebar .coeff-popup-title-detail sub{font-weight:400!important}
.pbs-lookup-popup .coeff-popup-close,
.pbs-lookup-popup .risk-k1-close{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
.pbs-lookup-popup .coeff-popup-close:hover,
.pbs-lookup-popup .risk-k1-close:hover{background:rgba(255,255,255,.16)!important}

/* The entire fixed header region remains navy, including the permanent scrollbar gutter. */
.pbs-lookup-popup .risk-k1-titlebar,
.pbs-lookup-popup .coeff-popup-titlebar,
.pbs-lookup-popup .risk-k1-filter-row,
.pbs-lookup-popup .coeff-popup-filter-row,
.pbs-lookup-popup .risk-k1-table-head,
.pbs-lookup-popup .coeff-popup-header-table{background-color:var(--pbs-popup-header-bg)!important;background-image:none!important}
.pbs-lookup-popup .risk-k1-table-head,
.pbs-lookup-popup .coeff-popup-header-table{
  width:calc(100% - var(--pbs-popup-scrollbar-width))!important;
  box-sizing:border-box!important;
  border:0!important;
  margin:0 var(--pbs-popup-scrollbar-width) 0 0!important;
}
.pbs-lookup-popup .risk-k1-table-head::after,
.pbs-lookup-popup .coeff-popup-header-table::after{content:none!important}

/* Permanent scrollbar track and navy resize footer. */
.pbs-lookup-popup .risk-k1-scroll,
.pbs-lookup-popup .coeff-popup-scroll-body{overflow-y:scroll!important;scrollbar-gutter:stable!important;margin-bottom:16px!important}
.pbs-lookup-popup .coeff-popup-resize-footer{
  position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:16px!important;
  background:var(--pbs-popup-header-bg)!important;border:0!important;z-index:99998!important;pointer-events:none!important;
}
.pbs-lookup-popup .coeff-popup-resize-right,
.pbs-lookup-popup .coeff-popup-resize-bottom,
.pbs-lookup-popup .coeff-popup-resize-corner,
.pbs-lookup-popup .risk-k1-resize{box-shadow:none!important;filter:none!important;border:0!important}
.pbs-lookup-popup .coeff-popup-resize-right{background:transparent!important}
.pbs-lookup-popup .coeff-popup-resize-right:hover{background:transparent!important}
.pbs-lookup-popup .coeff-popup-resize-bottom{background:transparent!important}
.pbs-lookup-popup .coeff-popup-resize-corner{background:transparent!important}
.pbs-lookup-popup .risk-k1-resize{z-index:99999!important}

/* v1.3.367 unified STN lookup popup chrome. */
.pbs-lookup-popup{
  background:var(--pbs-popup-header-bg)!important;
  overflow:hidden!important;
}
.pbs-lookup-popup .risk-k1-titlebar,
.pbs-lookup-popup .coeff-popup-titlebar,
.pbs-lookup-popup .risk-k1-filter-row,
.pbs-lookup-popup .coeff-popup-filter-row,
.pbs-lookup-popup .risk-k1-table-head,
.pbs-lookup-popup .coeff-popup-header-table{
  background:var(--pbs-popup-header-bg)!important;
  background-image:none!important;
}
/* Keep the complete fixed header area navy, including the permanent scrollbar gutter. */
.pbs-lookup-popup .risk-k1-table-head,
.pbs-lookup-popup .coeff-popup-header-table{
  width:100%!important;
  padding-right:var(--pbs-popup-scrollbar-width)!important;
  margin:0!important;
  border:0!important;
  box-sizing:border-box!important;
}
.pbs-lookup-popup .risk-k1-table-head thead,
.pbs-lookup-popup .coeff-popup-header-table thead,
.pbs-lookup-popup .risk-k1-table-head tr,
.pbs-lookup-popup .coeff-popup-header-table tr{
  background:var(--pbs-popup-header-bg)!important;
}
/* Native scrollbar arrow buttons are intentionally hidden. */
.pbs-lookup-popup .risk-k1-scroll::-webkit-scrollbar-button,
.pbs-lookup-popup .coeff-popup-scroll-body::-webkit-scrollbar-button{
  display:none!important;
  width:0!important;
  height:0!important;
}
.pbs-lookup-popup .risk-k1-scroll,
.pbs-lookup-popup .coeff-popup-scroll-body{
  scrollbar-gutter:stable!important;
  overflow-y:scroll!important;
  overflow-x:hidden!important;
  background:#fff!important;
  margin-bottom:16px!important;
}
/* Shared resize affordances: right edge, bottom edge, and corner. */
.pbs-lookup-popup .risk-k1-resize-right,
.pbs-lookup-popup .coeff-popup-resize-right{
  position:absolute!important;top:0!important;right:0!important;bottom:16px!important;width:6px!important;
  cursor:ew-resize!important;background:transparent!important;border:0!important;box-shadow:none!important;z-index:100002!important;
}
.pbs-lookup-popup .risk-k1-resize-bottom,
.pbs-lookup-popup .coeff-popup-resize-bottom{
  position:absolute!important;left:0!important;right:16px!important;bottom:0!important;height:6px!important;
  cursor:ns-resize!important;background:transparent!important;border:0!important;box-shadow:none!important;z-index:100002!important;
}
.pbs-lookup-popup .risk-k1-resize,
.pbs-lookup-popup .coeff-popup-resize-corner{
  position:absolute!important;right:0!important;bottom:0!important;width:16px!important;height:16px!important;
  cursor:nwse-resize!important;border:0!important;box-shadow:none!important;z-index:100003!important;
  background:linear-gradient(135deg,transparent 0 48%,#94a3b8 50% 57%,transparent 59% 68%,#94a3b8 70% 77%,transparent 79%)!important;
}
.pbs-lookup-popup .risk-k1-resize::before,
.pbs-lookup-popup .coeff-popup-resize-corner::before{content:none!important}
.pbs-lookup-popup::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:16px;background:var(--pbs-popup-header-bg);z-index:100000;pointer-events:none;
}
.pbs-lookup-popup .risk-k1-resize,
.pbs-lookup-popup .risk-k1-resize-bottom,
.pbs-lookup-popup .risk-k1-resize-right,
.pbs-lookup-popup .coeff-popup-resize-bottom,
.pbs-lookup-popup .coeff-popup-resize-right,
.pbs-lookup-popup .coeff-popup-resize-corner{pointer-events:auto!important}
/* The title close button has no visible border. */
.pbs-lookup-popup .coeff-popup-close,
.pbs-lookup-popup .risk-k1-close{border:0!important;outline:0!important;box-shadow:none!important}


/* Authoritative shared STN popup structure. */
:root{--pbs-popup-subscript-scale:.70}
.pbs-lookup-popup{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
/* Hidden must outrank the shared display:flex popup layout. Without this, an
   empty lookup shell can flash as a white ghost popup before its first use. */
.pbs-lookup-popup[hidden]{display:none!important;}
.pbs-lookup-popup .risk-k1-titlebar,
.pbs-lookup-popup .coeff-popup-titlebar,
.pbs-lookup-popup .risk-k1-filter-row,
.pbs-lookup-popup .coeff-popup-filter-row,
.pbs-lookup-popup .risk-k1-table-head,
.pbs-lookup-popup .coeff-popup-header-table,
.pbs-lookup-popup .pbs-lookup-resize-footer{flex:none!important}
.pbs-lookup-popup .risk-k1-scroll,
.pbs-lookup-popup .coeff-popup-scroll-body{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  overflow-y:scroll!important;
}
.pbs-lookup-popup .pbs-lookup-resize-footer{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  height:16px!important;
  min-height:16px!important;
  background:var(--pbs-popup-header-bg)!important;
  border:0!important;
  z-index:1!important;
  pointer-events:none!important;
}
.pbs-lookup-popup::after{content:none!important}
.pbs-lookup-popup .risk-k1-resize-right,
.pbs-lookup-popup .coeff-popup-resize-right{bottom:16px!important}
.pbs-lookup-popup .risk-k1-resize-bottom,
.pbs-lookup-popup .coeff-popup-resize-bottom{bottom:0!important}
.pbs-lookup-popup .risk-k1-resize,
.pbs-lookup-popup .coeff-popup-resize-corner{bottom:0!important}
.pbs-lookup-popup sub{
  font-size:calc(1em * var(--pbs-popup-subscript-scale))!important;
  line-height:0!important;
  vertical-align:sub!important;
}

/* Shared popup title-row geometry and symbolic subscript contract. */
:root{--pbs-popup-title-row-height:40px}
.pbs-lookup-popup .risk-k1-titlebar,
.pbs-lookup-popup .coeff-popup-titlebar{
  flex:0 0 var(--pbs-popup-title-row-height)!important;
  min-height:var(--pbs-popup-title-row-height)!important;
  height:var(--pbs-popup-title-row-height)!important;
}
.pbs-lookup-popup .risk-k1-ps-label em{font-style:italic!important}
.pbs-lookup-popup .risk-k1-ps-label sub{
  font-size:calc(1em * var(--pbs-popup-subscript-scale))!important;
  line-height:0!important;
  vertical-align:sub!important;
}

/* Shared light row separators for STN A.1 and K.1 popup bodies. */
:root{--pbs-popup-row-separator:#d1d5db}
.pbs-lookup-popup .risk-k1-scroll tbody tr:not(:last-child) td,
.pbs-lookup-popup .coeff-popup-scroll-body tbody tr:not(:last-child) td{
  border-bottom:1px solid var(--pbs-popup-row-separator)!important;
}

/* Hidden/closed popup state must override the shared flex layout. */
.pbs-lookup-popup[hidden],
.pbs-lookup-popup[style*="display: none"]{display:none!important}

/* Authoritative STN popup row separator contract. */
:root{--pbs-popup-row-separator:#d1d5db}
.pbs-lookup-popup .risk-k1-scroll tbody td,
.pbs-lookup-popup .coeff-popup-scroll-body tbody td{
  border-bottom-color:transparent!important;
}
.pbs-lookup-popup .risk-k1-scroll tbody tr:not(:last-child)>td,
.pbs-lookup-popup .coeff-popup-scroll-body tbody tr:not(:last-child)>td{
  border-bottom:1px solid var(--pbs-popup-row-separator)!important;
}

/* Authoritative K.1 p_s label alignment: keep the symbol immediately beside its value editor. */
.pbs-lookup-popup .risk-k1-filter-row > .risk-k1-ps-label{
  justify-self:end!important;
  align-self:center!important;
  display:flex!important;
  align-items:baseline!important;
  justify-content:flex-end!important;
  width:100%!important;
  padding-left:0!important;
  padding-right:2px!important;
  text-align:right!important;
  white-space:nowrap!important;
}
