/* Status gutters are present before, during and after an edit. The badge itself
   is out of flow, so names/counts never affect intrinsic table or flex sizing. */
#collaborationBtn {
  width: 116px;
  min-width: 116px;
  max-width: 116px;
  flex: 0 0 116px;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

#view tr[data-edit-key] > td.name,
#view tr.detail[data-edit-key] > td,
#view .presence-anchor,
#view .r-edit[data-edit-key],
#view .r-org[data-edit-key],
#view .r-meta [data-edit-key] {
  position: relative;
}
#view tr[data-edit-key] > td.name { padding-top: 25px; }
#view tr.detail[data-edit-key] > td { padding-top: 20px; }
#view .r-edit[data-edit-key],
#view .r-org[data-edit-key] { padding-top: 22px; }
#view .r-meta [data-edit-key] { display: inline-block; padding-top: 22px; }
#view .presence-anchor { min-height: 22px; padding-top: 22px; }
/* The label belongs to the report editor, above its hint and textarea. */
#view .r-edit > .edit-hint { position: static; }

#view .collaboration-badge {
  position: absolute;
  inset: 3px 6px auto auto;
  z-index: 2;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 12px);
  height: 18px;
  margin: 0;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 16px;
  font-size: 10px;
  border-radius: 5px;
  /* The reserved gutter keeps this hoverable full-name tooltip off controls. */
  pointer-events: auto;
}
#view .collaboration-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#view .collaboration-action { flex: 0 0 auto; white-space: pre; }
#view tr[data-edit-key].edited-by-me > td.name { box-shadow: inset 3px 0 var(--teal); }
#view tr[data-edit-key].edited-by-other > td.name { box-shadow: inset 3px 0 #e4a52c; }
#flash { max-width: calc(100vw - 32px); overflow-wrap: anywhere; pointer-events: none; }

@media print {
  #view .collaboration-badge { display: none !important; }
  #view tr[data-edit-key] > td.name { padding-top: 8px; }
  #view tr.detail[data-edit-key] > td,
  #view .r-edit[data-edit-key],
  #view .r-org[data-edit-key],
  #view .r-meta [data-edit-key] { padding-top: 0; }
}
