/* 
#edit {
  position: fixed;
  top: 8px;
  right: 8px;
  width: 320px;
  height: auto;
  max-height: calc(100vh - 16px);
  padding: 4px;
  margin: 0;
  background: #fcfdfe;
          box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
  -webkit-box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
     -moz-box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
      -ms-box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
  overflow-y: auto;
  cursor: default;
  z-index: 20;
}

#edit.widen {
  width: 420px;
}

#edit>header {
  position: sticky;
  top: 0;
  right: auto;
  width: auto;
  min-height: 76px;
  margin: -4px -4px 0 -4px;
  color: #808080;
  background-image: linear-gradient(to bottom right,#efefef , #fcfdfe);
  z-index: 1;
}

#edit.widen>header {
  width: auto;
}
*/

#edit {
  position: fixed;
  top: 8px;
  right: 8px;
  bottom: auto;
  left: auto;

  width: 280px;
  height: auto;
  max-height: calc(100vh - 16px);

  padding: 4px;
  margin: 0;
  background: #fcfdfe;
  box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
  -webkit-box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
  -moz-box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
  -ms-box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);

  overflow: hidden;
  cursor: default;
  z-index: 20;
  box-sizing: border-box;
}

#edit.widen {
  width: 420px;
}

#edit > header {
  position: sticky;
  top: 0;
  right: auto;
  width: 100%;
  box-sizing: border-box;
  color: #808080;
  background-image: linear-gradient(to bottom right, #efefef, #fcfdfe);

  z-index: 1;
}

#edit.widen > header {
  width: 100%;
}

#edit-generic,
#edit-group,
#edit-link,
#edit-uploaded,
#edit-video,
#edit-viewpoint,
#edit-timeline {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

#edit .content {
  margin-top: 8px;
}



#edit * {
  /* disable selection */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#editWiden {
  position: absolute;
  top: 44px;
  left: 29px;
}

#editDismiss {
  position: absolute;
  top: 16px;
  right: 12px;
}

#infoOpen {
  position: absolute;
  top: 16px;
  right: 32px;
}



#edit-generic,
#edit-group {
  padding: 8px;
}

#edit header h2:hover #editIcon {
  display: none;
}

#edit header h2 #editSave {
  display: none;
}

#edit header h2:hover #editSave {
  display: inline-block;
}

#editOpen {
  position: absolute;
  top: 16px;
  right: 32px;
}

#edit .fa,
#edit .fas,
#edit .fab,
#edit .far {
  color: #808080;
  cursor: pointer;
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
}

#edit .fa:hover,
#edit .fas:hover,
#edit .fab:hover,
#edit .far:hover  {
  color: rgb(77, 179, 205);
  text-shadow: 0em 0.1em 0.1em rgba(0, 0, 0, 0.3);
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

#edit .content {
  margin-top: 8px;
}

#edit input,
#edit textarea,
#edit select {
  background: #fcfdfe;
  border-top: none;
  border-right: none;
  border-bottom: 1px solid #cdcdcd;
  border-left: none;
  margin-top: 4px;
  padding: 4px;
}

#edit textarea {
  position: relative;
  min-height: 2em;
  max-height: 50vh;
  overflow-y: hidden;
  resize: none;
  box-sizing: border-box;
}

#edit textarea::placeholder {
  white-space: pre-wrap;
}

/* dropdown fallback */
#edit .dropdown {
  position: relative;
}

#edit .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 10000;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .15);
}

#edit .dropdown-menu.show {
  display: block;
}

#edit div.font_text-anchor {
  display: flex;
  align-items: center;
  gap: 4px;
}

#edit i.font_text-anchor,
#edit svg.font_text-anchor,
#edit .svg-inline--fa.font_text-anchor {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  margin: 2px;
  border-radius: 4px;
}

#edit i.font_text-anchor {
  color: #505050;
  background: #fcfdfe;
}

#edit .font_text-anchor.checked,
#edit .svg-inline--fa.font_text-anchor.checked {
  color: #fcfdfe !important;
  background: #303030 !important;
  box-shadow: inset 0 0 0 1px #303030;
}

#edit i.font_text-anchor:not(.checked):hover,
#edit svg.font_text-anchor:not(.checked):hover,
#edit .svg-inline--fa.font_text-anchor:not(.checked):hover {
  color: #fcfdfe;
  background: #808080;
}

/* Header action icons: right-aligned on one row: info, widen, close. */
#edit > header {
  min-height: 56px;
}

#edit > header h2 {
  margin: 0;
  padding: 12px 96px 8px 0;
  line-height: 1;
}

#edit .pane-header-actions {
  position: absolute;
  top: 16px;
  right: 12px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

#infoOpen,
#editWiden,
#editDismiss {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 22px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Final edit pane header action alignment override.
   Keep action icons at the right edge in one row. */
#edit > header {
  position: sticky;
  min-height: 56px;
}

#edit .pane-header-actions {
  position: absolute !important;
  top: 16px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  height: 24px;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  z-index: 3;
}

#edit .pane-header-actions > a {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 24px;
  margin: 0;
  padding: 0;
}

#infoOpen,
#editWiden,
#editDismiss {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
}
