/* Download dropdown — compact ERP chips, not empty input bars */

.erp-rd-anchor {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.erp-rd-drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  width: min(460px, 94vw);
}

/* Party register — fixed portal (survives list repaint / toolbar overflow clip) */
.erp-rd-drop--party-fixed {
  position: fixed;
  z-index: 10050;
  width: min(460px, 94vw);
  margin: 0;
}

.erp-rd-card--drop {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
}

.erp-rd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
}

.erp-rd-head .erp-rd-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.erp-rd-close {
  flex: 0 0 auto;
  min-width: 40px !important;
  width: 40px !important;
  max-width: 40px !important;
  padding: 0 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 38px !important;
  color: #000000 !important;
}

.erp-rd-close span {
  display: block;
  line-height: 38px;
}

.erp-rd-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #000000 !important;
}

.erp-rd-hint {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #000000 !important;
}

.erp-rd-paper {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #000000 !important;
  background: #eef0fa;
  border: 1px solid #c5cae9;
  border-radius: 6px;
  padding: 6px 8px;
}

.erp-rd-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  max-height: 200px;
  overflow: auto;
}

.erp-rd-tick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  color: #000000 !important;
  cursor: pointer;
  box-sizing: border-box;
}

.erp-rd-tick:has(input:checked) {
  background: #eef0fa;
  border-color: #3949AB;
}

html.bnpl-app-active #content .erp-rd-tick input.erp-rd-col,
.erp-rd-tick input.erp-rd-col {
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex: 0 0 16px;
  accent-color: #3949AB;
}

.erp-rd-actions--drop {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

html.bnpl-app-active #content .erp-rd-actions--drop button.btn,
.erp-rd-actions--drop button.btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 64px !important;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 38px !important;
}

html.bnpl-app-active #content .erp-rd-actions--drop button.btn.primary {
  background: #3949AB !important;
  color: #ffffff !important;
  border: 0 !important;
}

html.bnpl-app-active #content .erp-rd-actions--drop button.btn.secondary {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #cbd5e1 !important;
}

html.bnpl-app-active #content .staff-p10-filterbar,
html.bnpl-app-active #content .staff-p10-toolbar-links {
  overflow: visible;
}
