.contentWrapper {
  box-sizing: border-box;
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: calc(100% - 20px);
  overflow: scroll;
}
.toolBarMode-narrow .contentWrapper {
  left: 40px;
  width: calc(100% - 40px);
}
.toolBarMode-wide .contentWrapper {
  left: 160px;
  width: calc(100% - 160px);
}


.mainRuler {
  box-sizing: border-box;
  position: absolute;
  width: 100%;
  top: 0;
  height: 20px;  
  background-color: var(--gray-f);
  border-bottom: 1px solid var(--gray-0);
  background-size: 32px 4px;
  background-repeat: repeat-x;
  background-position-y: 7px;
  background-image: repeating-linear-gradient(90deg, var(--gray-8), var(--gray-8) 1px, #0000 1px, #0000 32px);
}
.toolBarMode-narrow .mainRuler {
  left: 40px;
  width: calc(100% - 40px);
}
.toolBarMode-wide .mainRuler {
  left: 160px;
  width: calc(100% - 160px);
}
.mainRuler_inner {
  position: absolute;
  top: 0;
  height: 15px;
  margin: 1px 0;
  background-color: var(--gray-d);
  border: 1px solid var(--gray-8);
  font-size: 12px;
  color: var(--gray-4);
  background-size: 32px 4px;
  background-repeat: repeat-x;
  background-position-y: 5px;
  background-image: repeating-linear-gradient(90deg, var(--gray-8), var(--gray-8) 1px, #0000 1px, #0000 32px);
}
.mainRuler_handle {
  position: absolute;
  top: 0;
  text-align: right;
  cursor: ew-resize;
  padding: 1px 4px;
}
.mainRuler_handle-left {
  left: 0;  
}
.mainRuler_handle-right {
  right: 0;
}


.contentArea {
  position: absolute;
  left: 0;
  top: 0;
}
.content {
  top: 0;
  left: 0;
  border: 1px solid var(--gray-d);
  background-color: white;
  position: absolute;
  z-index: 0;
}
.proofreadingNotesBar {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
}
.tEditor:not(.showProofreadingNotes) .proofreadingNotesBar {
  display: none;
}

.pageToolbar {
  position: absolute;
  height: 3em;
  top: calc(512px - 3em);
  padding: 2px 0;
}
.pageToolbar_rightGroup {
  position: absolute;
  right: -4px;
  top: 0px;
  padding: 2px 0;
}

.proofreadingNote {
  position: absolute;
  padding: 4px;
  box-sizing: border-box;
  width: 100%;
  max-width: 200px;
  border: 1px solid var(--gray-d);
  background-color: var(--gray-e);
}
.proofreadingNote-yellow {
  background-color: #ff08;
}
.proofreadingNote-green {
  background-color: #0f08;
}
.proofreadingNote-pink {
  background-color: #f4c8;
}
.proofreadingNote-blue {
  background-color: #4cf8;
}
.proofreadingNote-orange {
  background-color: #f808;
}
.proofreadingNote-red {
  background-color: #f008;
}
.proofreadingNote-closed {
  background-color: #eee8;
}
.proofreadingNote-new:before {
  position: absolute;
  content: " ";
  top: 0;
  right: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid red;
  border-bottom: 6px solid transparent;
  height: 0;
  width: 0;
}
.proofreadingNote-selected {
  outline: 1px solid var(--gray-8);
}
.proofreadingNote-notLinked {
  border: 2px dashed var(--gray-d);
}
.tEditor.showProofreadingNotes-newOnly .proofreadingNote:not(.proofreadingNote-new) {
  display: none;
}
.tEditor.showProofreadingNotes-notClosed .proofreadingNote-closed {
  display: none;
}
.tDialog_notLinkedProofreadingNoteInfo {
  border: 1px solid var(--warning);
  padding: 2px;
  color: var(--warning);
}

.tEditor_addContentRect {
  position: absolute;
  outline: 1px solid var(--gray-f);
  border: 1px solid #0af;
  background-color: #0af8;
  cursor: crosshair;
}

.issueMasterLayout_legend {
  display: inline-block;
  text-align: center;
  width: 20%;
  transform: rotate(-90deg);
  color: var(--gray-4);
}
.issueMasterLayout_input {
  width: 40px;
  text-align: right;
  margin: 0 4px;
}
.issueMasterLayout_text {
  margin: 0 4px;
}
.issueMasterLayout_dropdown {
  width: 60px;
  margin: 0;
  display: inline-block;
}

.issueMasterLayout_divider {
  margin: 20px 0;
  border-top: 1px solid var(--gray-a);
  width: 100%;
  height: 0px;
  text-align: center;
}
.issueMasterLayout_dividerInput {
  position: relative;
  width: 40px;
  text-align: center;
  top: -10px;
}

.tDialog_column {
  display: inline-block;
  vertical-align: top;
}
.tDialog_column-types {
  width: 100px;
  height: 100%;
}
.tDialog_column-params {
  position: relative;
  overflow: hidden;
  width: calc(100% - 100px);
  min-height: 200px;
  box-sizing: border-box;
  padding: 4px;
  background-color: var(--gray-e);
}
.typeButton {
  position: relative;
  padding: 4px 4px 4px 16px;
  cursor: pointer;
  border: 1px solid transparent;
}
.typeButton:hover {
  border-color: var(--gray-8);
}
.typeButton-selected {
  background-color: var(--gray-e);
}
.typeButton:before {
  content: " ";
  display: block;
  position: absolute;
  left: 6px;
  top: 6px;
  width: 4px;
  height: 10px;
  background-color: var(--passiveLED);
  box-shadow: inset 0 0 1px rgba(0,0,0,0.5);
}
.typeButton-selected:before {
  background-color: var(--activeLED);
}

