:root {
  --bg-color-inner: var(--bg-color, #0e1366);
}

.collab-li {
  position: relative;
  min-height: 60px;
}

.tokbox-pp {
  position: absolute !important;
  left: 1em;
  width: 45px;
  height: 40px;
  border-radius: 100%;
  object-fit: cover;
}

.tokbox-div {
  position: absolute;
  display: inline-block;
  left: 1em;
}

#btn-publish {
  position: absolute;
  right: 1em;
  background-color: #228b22;
  border-radius: 50px;
}

.collab-user-name {
  display: inline-block;
  left: 70px;
  position: absolute;
  top: 20px;
}

.king-icon {
  z-index: 10000;
  position: absolute;
  left: 24px;
  top: 0;
  color: #c2b316;
  font-size: 1.2em;
}

#instant-messages {
  max-height: 250px;
  overflow-y: auto;
  border: #d3d3d3 1px solid;
}

#send-text-message {
  color: #fff;
  background-color: var(--bg-color-inner);
}

.instant-message {
  border-radius: 5px;
  padding-top: 0.25em;
  padding-left: 0.25em;
  padding-right: 0.25em;
  position: relative;
  margin-bottom: 1px;
}

.instant-message:hover {
  background-color: #cdd3e1;
}

.im-name {
  font-size: 0.9em;
  font-weight: 700;
}

.im-time {
  font-size: 0.8em;
  color: grey;
  margin-left: 1rem;
}

.im-time-another-user {
  font-size: 0.8em;
  color: grey;
  margin-left: 1rem;
  float: right;
}

.adv-div {
  display: inline-block;
  position: relative;
  text-align: center;
}

.unshare-case {
  position: absolute;
  top: -2px;
  right: -4px;
  display: none;
}

.adv-div:hover > .unshare-case {
  display: inline-block;
}

#slide-info {
  white-space: pre-line;
  text-align: justify;
}

.panel-title > a:focus,
.panel-title > a:hover {
  color: #fff;
}

.panel-body,
.panel-collapse,
.panel-default {
  border: 1px solid var(--bg-color-inner);
}

.panel-default > .panel-heading {
  border: 1px solid #fff;
  background-color: var(--bg-color-inner);
  border-radius: 0;
  color: #fff;
}

#sidebar {
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  background-color: var(--bg-color-inner);
  border-left: 5px solid #0e1366;
}

.case-image {
  max-width: 90px;
  max-height: 90px;
  vertical-align: bottom;
}

.delete-case-file {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
}

.case-file-div:hover > .delete-case-file {
  display: inline-block;
}

.case-file-div {
  position: relative;
  vertical-align: bottom;
  margin: 2px;
  word-break: break-all;
}

.add-file-div {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
}

.add-file-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.case-files-div:hover > .add-file-div {
  display: block;
}

.case-files-div {
  position: relative;
  margin-left: 25px;
  min-height: 50px;
}

.case-files-container {
  width: 90%;
}

.case-file-input {
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sop-text {
  white-space: pre-line;
  text-align: justify;
  word-break: break-word;
}

.edit-sop {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
}

.my-sop-cnt:hover > .edit-sop {
  display: inline;
}

.my-sop-cnt {
  position: relative;
}

#open-share-case {
  background-color: #8206c7;
}

.ann-li-btns {
  display: none;
  top: -5px;
  position: relative;
}

.ann-li:hover > div > .ann-li-btns {
  display: inline;
}

.ann-li-bottom {
  width: 60%;
}

.region-tag {
  display: inline;
  padding: 2px;
}

.change-ann-name {
  word-break: break-all;
}

.tooltipster-content {
  word-break: break-all;
}

.tooltipster-content {
  word-break: break-all;
}

.refer {
  color: #0ba449;
  cursor: pointer;
  word-break: break-all;
}

.refer:hover {
  color: #9db918;
}

#note-create-box {
  margin-bottom: 1em;
}

.note-edit-box {
  display: none;
}

.note-btns {
  display: none;
}

.note-right:hover > .note-btns {
  display: inline;
}

.ann-time,
.note-time {
  font-size: 0.8em;
  color: gray;
  position: absolute;
  right: 5px;
}

.note-time {
  bottom: 0;
}

.ann-time {
  bottom: 0;
}

.note-box {
  border-top: #d3d3d3 1px solid;
  margin-right: 0.5em;
  position: relative;
  overflow: hidden;
  padding-top: 10px;
}

.note-pp {
  position: absolute;
  left: 0;
  top: 12px;
}

.note {
  white-space: pre-line;
  text-align: justify;
  font-size: 0.9em;
  word-break: break-all;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 200px;
}

.note-right {
  float: left;
  position: relative;
  margin-left: 50px;
  width: calc(100% - 50px);
  padding-bottom: 1.5em;
}

.form-inline .form-control {
  width: 100% !important;
}

.btn-xs {
  font-size: 9px;
}

.instructor-box {
  background: #eaf1f7;
}

#menu-bar {
  position: absolute;
  width: 43px;
  top: 0;
  left: 0;
  background-color: var(--bg-color-inner);
  z-index: 1;
  overflow: auto;
  height: 100%;
  display: none;
  margin-bottom: 0 !important;
}

#menu-bar::-webkit-scrollbar {
  width: 0;
  background: 0 0;
}

.buttonGroup {
  background-color: rgba(127, 127, 127, 0);
  margin-left: 3px;
}

.backButton {
  background: #8b008b;
  padding: 5px;
  cursor: pointer;
}

.button,
.mode-button {
  padding: 5px;
  width: 34px;
}

.button:hover,
.mode-button:hover {
  background-color: #1f71f2;
  border-radius: 5px;
}

.selected {
  background-color: #2532c0;
}

#next,
#prev,
#slice-name {
  vertical-align: middle;
}

#slider {
  width: calc(100% - 4px);
}

#regionStyleMenu {
  position: absolute;
  width: 255px;
  border-radius: 3px;
  top: 300px;
  border: 2px solid var(--bg-color-inner);
  right: 0;
  background-color: rgba(200, 200, 200, 0.9);
  display: none;
  z-index: 100;
  padding: 0.5em;
  color: var(--bg-color-inner);
}

.style-select-row {
  display: flex;
  flex-direction: row;
}

.font-select {
  font-size: 14px !important;
  width: 160px !important;
}

.font-select > span {
  line-height: 22px !important;
  height: 30px !important;
}

#textColorPicker {
  width: 4.95em;
  height: 1.5em;
  vertical-align: middle;
  box-shadow: none !important;
  z-index: 10;
}

#strokeThickness {
  width: 4.95em;
  height: 1.5em;
  vertical-align: middle;
  box-shadow: none !important;
  z-index: 10;
}

#textFontSize {
  width: 4.95em;
  height: 1.5em;
  vertical-align: middle;
  box-shadow: none !important;
  z-index: 10;
}

#textFont {
  width: 4.95em;
  height: 1.5em;
  vertical-align: middle;
  box-shadow: none !important;
  z-index: 10;
}

#chkApplyColorToAll {
  width: 1.5em;
  vertical-align: middle;
  box-shadow: none !important;
  z-index: 10;
}

#textBgColorPicker {
  width: 4.95em;
  height: 1.5em;
  vertical-align: middle;
  box-shadow: none !important;
  z-index: 10;
}

#fillColorPicker {
  width: 4.95em;
  height: 1.5em;
  vertical-align: middle;
  box-shadow: none !important;
  z-index: 10;
}

#strokeColorPicker {
  width: 4.95em;
  height: 1.5em;
  vertical-align: middle;
  box-shadow: none !important;
  z-index: 10;
}

#alphaSlider {
  width: 73px;
}

#alphaFill {
  width: 4em;
  vertical-align: middle;
  text-align: right;
  padding-right: 5px;
  border-radius: 5px;
  border: 0;
  background-color: transparent;
  font-size: 13px;
}

.style-select-row > label {
  line-height: 2;
  margin-bottom: 0;
}

.style-select-row > .font-select {
  margin: 0 0 0 auto;
}

#okStrokeColor {
  width: 47%;
  border: thin solid #d3d3d3;
  background-color: #fff;
}

#cancelStrokeColor {
  width: 47%;
  border: thin solid #d3d3d3;
  background-color: #fff;
}

.region-tag {
  position: relative;
}

.region-color {
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  border: thin solid grey;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.85;
}

.eye {
  display: inline-block;
  vertical-align: middle;
  z-index: 10;
}

.region-tag.selected {
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 0;
}

.region-tag.deselected {
  background-color: transparent;
}

.table {
  display: table;
  table-layout: fixed;
}

.row {
  display: table-row;
}

.cell {
  display: table-cell;
  width: 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

#menuButton {
  position: absolute;
  left: 1px;
  z-index: 11;
}

.right-panel-button {
  right: 0;
}

.form-group {
  margin-bottom: 0;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow: auto !important;
}

.panel-body {
  padding: 9px;
}

#view {
  height: 100%;
  background-color: #fff;
  color: #000;
}

#view-parent {
  height: 100%;
  padding: 0;
  border-right: solid #000 1px;
  margin: 0;
}

.viewer-main-row {
  position: relative;
  left: 0;
  height: calc(100% - 56px);
  width: 100%;
}

.right-btn {
  width: 100%;
  margin: 1px;
}

#toggle-up-btn {
  position: absolute;
  right: 0;
  top: 180px;
  opacity: 0.4;
  color: #fff;
  width: 35px;
  height: 30px;
  background-color: #8206c7;
}

#toggle-up-btn:hover {
  opacity: 1;
  background-color: #3e0f8e;
  color: #fff;
  border: 0 solid transparent;
  border-radius: 0;
}

#toggle-right-btn {
  position: absolute;
  right: 0;
  top: 220px;
  opacity: 0.4;
  color: #fff;
  width: 35px;
  height: 30px;
  background-color: #8206c7;
}

#toggle-right-btn:hover {
  opacity: 1;
  background-color: #3e0f8e;
  color: #fff;
  border: 0 solid transparent;
  border-radius: 0;
}

.btn-clicked {
  background-color: #ffdd27;
}

.btn-clicked:hover {
  background-color: #ff0;
}

hr {
  margin-top: 5px;
  margin-bottom: 5px;
}

h5 {
  margin-top: 0.5em;
  padding-top: 0;
  font-size: 16px;
  color: #000;
}

.full-width {
  width: 100%;
}

.info-edit {
  display: inline;
  opacity: 0.5;
  transition: 0.3s all;
}

.case-info-text-div:hover > .info-edit,
.case-name:hover > .info-edit {
  opacity: 1;
}

.case-info-text-div {
  min-width: 2em;
  min-height: 2em;
  text-align: justify;
}

.case-info-text {
  white-space: pre-line;
  word-break: break-all;
}

.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-file-view-dialog {
  margin: 10px 0 0;
  width: 90%;
  left: 5%;
  height: 90vh;
}

.modal-file-view-content {
  background-color: #fefefe;
  margin: auto;
  padding: 10px;
  border: 1px solid #888;
  height: 100%;
  display: flex;
  flex-flow: column;
}

.modal-file-view-header {
  flex: 0 1 auto;
}

.modal-file-view-body {
  text-align: center;
  align-items: center;
  flex: 1 1 auto;
  display: flex;
  flex-flow: column;
  overflow: scroll;
}

.modal-media {
  max-height: 100%;
  max-width: 100%;
  margin: auto;
}

#pdfUploadModal .modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 10px;
  border: 1px solid #888;
  height: 155px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: 700;
}

.close:focus,
.close:hover {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.popup-header {
  margin: 0.5em;
  padding: 0.5em;
}

.popup-file-input {
  margin: 0.3em;
  padding: 0.3em;
}

.image-upload-popup-content {
  width: 75% !important;
  height: 320px;
}

.case-report-image {
  width: 70px;
  height: 50px;
  margin: 0.5em;
  border: 1px solid grey;
  float: left;
}

.final-report-div {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  margin: 2px;
}

.case-report-document {
  width: 70px;
  height: 50px;
  margin-left: 0.3em;
}

.btn-close-modal,
.btn-close-modal:hover {
  float: right;
  background-color: transparent;
  color: #000;
  height: 30px;
  width: 30px;
  padding: 0;
}

#share-case {
  background-color: #8206c7;
}

.btn-group {
  float: right;
}

.info-submit,
.info-submit:hover {
  background-color: var(--bg-color-inner);
}

.info-back,
.info-back:hover {
  background-color: #8206c7;
}

#case-title {
  background-color: #2532c0;
  border: 0;
}

.current-slide-name {
  position: absolute;
  z-index: 1;
  background-color: #ccc;
  width: 30%;
  margin-left: 10%;
  margin-top: 2px;
  opacity: 0.4;
  text-align: center;
  color: #000;
  height: 30px;
  font-size: 17px;
  font-weight: bolder;
}

.current-slide-name:hover {
  background-color: #dbdbdb;
  opacity: 0.7;
  font-weight: bolder;
  font-size: 17px;
}

.slide-long-name {
  display: none;
  position: absolute;
  top: 203px;
  left: 0;
  word-break: break-all;
  font-size: 0.8em;
  padding: 2px;
  color: #fff;
  background-color: var(--bg-color-inner);
  border: 3px solid #8206c7;
  z-index: 1;
  cursor: pointer;
}

.note-text-area {
  width: 97%;
}

.note-edit-buttons {
  margin-top: 0;
  position: absolute;
  right: 5px;
}

.edit-note,
.edit-note:hover,
.edit-note:visited {
  background-color: #8206c7;
}

.current-user-name,
.current-user-name:hover {
  color: var(--bg-color-inner);
}

.final-report-submit,
.final-report-submit:hover {
  float: right;
  background-color: var(--bg-color-inner);
}

.case-acceptation {
  margin: 0.3em;
}

.final-report-body {
  height: 70px;
}

.more-info {
  float: right;
  margin-top: -22px;
  background-color: transparent;
  border: 0;
  display: none;
}

.close {
  opacity: 1;
  color: #000;
}

.zoom-btn {
  background-color: var(--bg-color-inner);
  color: #fff;
  text-align: center;
}

.second-opinion-date {
  padding: 6px;
  font-size: smaller;
  color: grey;
  float: right;
}

.student-group-icon {
  width: 24px;
  height: 24px;
  margin: 5px;
}

#slides_in_case_cnt {
  white-space: nowrap;
  overflow-x: scroll;
  overflow-y: hidden;
  margin: 3px;
}

#channelAdjustPanel {
  position: absolute;
  z-index: 15;
  top: 380px;
  left: 50px;
  background: #fff;
  padding: 5px;
  display: none;
}

#layerChangePanel {
  position: absolute;
  z-index: 15;
  top: 380px;
  left: 50px;
  background: #fff;
  padding: 5px;
  display: none;
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
}

#modal-channel-adjust {
  border: 4px solid #ccc;
  width: 560px;
  display: none;
  position: absolute;
  left: 40%;
  top: 20%;
  margin: -25px 0 0 -50px;
  border-radius: 5px;
  background: #fff;
  z-index: 15;
}

.microphone {
  position: relative;
  right: 1em;
  float: right;
  background-color: #228b22;
  border-radius: 50px;
}

#note-list {
  max-height: 400px;
  overflow-y: auto;
}

#ann-list {
  max-height: 450px;
  overflow-y: auto;
}

#second-opinion-list {
  max-height: 450px;
  overflow-y: auto;
}

#collaborators-list {
  max-height: 450px;
  overflow-y: auto;
}

.student-group {
  margin-right: 10px;
}

.fs-slide-list {
  padding: 0 15px 0 15px;
  position: absolute;
  right: 33%;
  height: 300px;
  overflow-y: auto;
  min-height: 96%;
  background: var(--bg-color-inner);
  z-index: 9999 !important;
}

.tooltipster-base {
  max-width: 500px !important;
  max-height: 400px !important;
  height: auto !important;
}

.btn-collab,
.btn-collab:focus {
  background-color: #8206c7;
}

.btn-collab.toggle-on {
  background-color: #228b22;
}

#next-slide-btn {
  position: absolute;
  right: 0;
  top: 300px;
  background: 0 0;
  border: transparent;
  z-index: 11;
  opacity: 0.4;
}

#next-slide-btn:hover {
  opacity: 1;
}

#prev-slide-btn {
  position: absolute;
  left: 45px;
  top: 300px;
  background: 0 0;
  border: transparent;
  z-index: 11;
  opacity: 0.4;
}

#prev-slide-btn:hover {
  opacity: 1;
}

.group-user-annotation {
  border: 1px solid #d3d3d3;
  padding: 2px 1px 1px 2px;
  margin-bottom: 5px;
  border-radius: 5px;
  background: #d3d3d3;
}

#slide-list-cnt {
  max-height: 400px;
  overflow-y: auto;
}

.iw-contextMenu {
  z-index: 99999999;
}

.ui-widget-header {
  background: 0 0;
  border: none;
}

#channel-setting-container {
  background: 0 0;
  border: none;
}

#modal-channel-adjust-body {
  padding: 0;
}

.channel-setting-tab {
  font-size: 15px;
}

.channel-bw-slider {
  background: linear-gradient(90deg, #000 0, #fff 100%);
}

.channel-bw-slider > .ui-slider-handle {
  background: #000096;
}

.chan-adv-input {
  width: 70px;
}

.chan-adv-input-cont {
  display: flex;
  justify-content: space-between;
}

.channelSettingCont {
  width: 512px;
  margin-left: 1em;
  margin-right: 1em;
  padding: 0 !important;
}

#histogram-canvas {
  margin-left: 1em;
  margin-right: 1em;
}

#channelSettingNavTab {
  margin-left: 13px;
}

.annotation-label {
  background-color: #0a0a0aaa;
  padding: 5px;
  border: 1px solid #0a0a0aff;
  width: 170px;
  height: 77px;
}

.annotation-label.highlight {
  background-color: #000155ab;
  border: 1px solid #000a9d;
}

.slide-thumb-md-link {
  width: 98px;
  height: 200px;
  outline: 2px #666666 solid;
  position: absolute;
  transition: 0s;
  top: 2px;
  left: 2px;
}

.slide-thumb-md-link:hover {
  outline: 3px #5e00ff solid;
}

.slide-thumb-md-link:focus {
  outline-offset: 0;
}

.bg-white {
  background: #fff;
}

.slide-thumb-md {
  max-width: 98px;
  max-height: 200px;
  position: absolute;
  top: 0;
}

.slide-thumb-cnt {
  width: 100px;
  height: 225px;
  display: inline-block;
  position: relative;
  margin: 3px 3px 0 3px;
}

.slide-name {
  font-size: 0.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  position: absolute;
  white-space: nowrap;
  left: 0;
  bottom: 0;
  cursor: pointer;
}

.slide-long-name {
  display: none;
  position: absolute;
  top: 203px;
  left: 0;
  word-break: break-all;
  font-size: 0.8em;
  padding: 2px;
  color: #fff;
  background-color: #0e1366;
  border: 3px solid #8206c7;
  z-index: 1;
  cursor: pointer;
}

.delete-slide {
  position: absolute;
  top: 0;
  right: 5px;
  display: none;
}

.slide-thumb-img:hover > .delete-slide {
  display: inline-block;
}

.slide-thumb-md-link.active-slide {
  outline: 5px #ff00bf outset;
}

.slide-thumb-md-link.active-slide:hover {
  outline: 5px #ff00bf inset;
}

.slide-name-div:hover > .info-edit-btn {
  display: inline;
  float: left;
  width: 100%;
  text-align: center;
  border: 2px solid #d3d3d3;
  border-radius: 5px;
}

.slide-long-name > .info-edit-btn {
  display: inline;
}
