/* REPPTRADE v4.4.35 — matched role/show colors + safe staged cast edits.
   Changes are scoped to the dedicated Master Catalogue Cast Members view. */

/* SHOW LABEL: use precisely the same show-themed ink as the role title,
   including bright/single-color theme tiles and accessible light surfaces. */
#reppMasterCastPage .repp4433-role-card>span:last-child>strong,
#reppMasterCastPage .repp4433-role-card>span:last-child>span{
  color:var(--show-title-ink,#ffffff)!important;
  -webkit-text-fill-color:var(--show-title-ink,#ffffff)!important;
}

/* Sticky detail header keeps the bulk-save action visible while editing many
   source-recording credits. The X button continues to behave as before. */
#repp4433Details .repp4433-dialog>header{
  position:relative;
  flex:0 0 auto;
  gap:16px;
}
#repp4433Details .repp4435-header-actions{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:9px;
  margin-left:auto;
}
#repp4433Details #repp4435PendingCount{
  font:650 11px/1.3 system-ui,sans-serif;
  color:#c4d6e8;
  white-space:nowrap;
}
#repp4433Details #repp4435SaveAll{
  padding:10px 14px;
  min-height:37px;
  border-radius:1px;
  border:1px solid #d99be9;
  background:#78266b;
  color:#ffffff;
  font:800 11px/1.2 system-ui,sans-serif;
  cursor:pointer;
  white-space:nowrap;
}
#repp4433Details #repp4435SaveAll[hidden]{display:none!important;}
#repp4433Details #repp4435SaveAll:disabled{
  opacity:.43;
  cursor:not-allowed;
}
#repp4433Details #repp4435SaveAll:not(:disabled):hover{
  background:#973a89;
  border-color:#e3b4ed;
}
#repp4433Details #repp4435SaveAll:focus-visible{
  outline:2px solid #d6a4ff;
  outline-offset:2px;
}
#repp4433Details #repp4435SaveSummary{
  padding:0;
  min-height:0;
  color:#b9dcce;
  background:#10283c;
  font:650 11px/1.35 system-ui,sans-serif;
}
#repp4433Details #repp4435SaveSummary:not(:empty){
  padding:10px 22px;
  border-bottom:1px solid #345a75;
}
#repp4433Details .repp4433-credit.repp4435-dirty{
  border-color:#b381c9;
  border-left-color:#d99be9;
  box-shadow:inset 0 0 0 1px rgba(217,155,233,.3);
}
#repp4433Details .repp4433-credit.repp4435-dirty .repp4433-credit-context strong::after{
  content:'  ·  UNSAVED';
  font:700 10px/1 system-ui,sans-serif;
  letter-spacing:.05em;
  color:#eabaf2;
}
@media(max-width:650px){
  #repp4433Details .repp4433-dialog>header{align-items:flex-start;flex-wrap:wrap;}
  #repp4433Details .repp4435-header-actions{width:100%;justify-content:space-between;}
  #repp4433Details #repp4435SaveAll{white-space:normal;}
}
@media(prefers-reduced-motion:reduce){
 #repp4433Details #repp4435SaveAll{transition:none!important}
}
