.main {
  flex-grow: 1;
}
.main.dp {
  width: 75%;
  overflow: auto;
}
.main.dp+.aside {
  width: 25%;
  overflow: auto;
}
.f-col {
  flex-direction: column;
}
.f-vcenter {
  align-items: center;
  flex-wrap: wrap;
}
.f-wrap {
  flex-wrap: wrap;
}
.f-justified {
  justify-content: space-between;
}
.pre {
  white-space: pre;
}
.del {
  text-decoration: line-through;
}
.toolbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1;
  background: white;
}
.pp-section {
  position: relative;
  margin-top: 1.5em;
}
.pp-section * {
  font-weight: normal;
}
.backref+.pp-section {
  margin-top: 0;
}
.pp-section:hover:before {
  position: absolute;
  right: 0;
  content: attr(title)" ";
  color: blue;
  background: #eee;
}
.pp-figure, .pp-table {
  margin-bottom: 1.5em;
  font-size: 90%;
}
.pp-figure .img-resizer {
  position: absolute;
  right:0;
  bottom:0;
  height:10pt;
  width:10pt;
  background: #8cf;
  cursor:nwse-resize;clip-path:polygon(0 100%, 100% 100%, 100% 0);
  display: none;
}
.ProseMirror-selectednode .img-resizer {
  display: block;
}
.pp-table {
  overflow: auto;
}
.pltoggle {
  cursor: pointer;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0.2em;
  width: 1.2em;
  height: 1.6em;
  background: linear-gradient(to right top, gray 50%,transparent 0) no-repeat 100% 0/30% 30%, linear-gradient(225deg, transparent 15%, #ccf 0);
}
.pp-table .pltoggle, .pp-table .pp-figure figcaption {
  display: none;
}
/* .tableWrapper:has(.column-resize-handle), .imgWrapper:has(.resize-handle){ */
/*   padding-top: 5px; */
/*   background-image: linear-gradient(90deg, #CCF 0 1px, transparent 0), linear-gradient(90deg, #DDF 0 1px, transparent 0); */
/*   background-repeat: repeat-x, repeat-x; */
/*   background-size: 5cm 5px, 1cm 2px; */
/* } */
.pp-table table {
  border-collapse: collapse;
  /* table-layout: fixed; */
}
.pp-table td, .pp-table th {
  min-width: 3em;
  border: 1px solid #ccc;
  padding: 5px;
  position: relative;
  text-align: center;
  background: white;
}
.pp-table th {
  font-weight: bold;
  background: #eee;
}
.pp-table table td > * {
  margin: 0;
}
.hovershow:hover .d-hide {
  display: initial !important;
}
.kv {
  display: flex;
  align-items: center;
  margin-top: .4em;
}
.kv.invalid:hover .d-hide {
  display: block !important;
}
.kv label{
  font-size: 1.2em;
  margin-right: 1em;
  flex: 0 0 auto;
}
.kv>div {
  height: 100%;
}
.kv.invalid {
  text-decoration: line-through;
  color: gray;
}
.kv.inline>*{
  font-size: unset;
  line-height: unset;
}
.ProseMirror .cmark {
  text-decoration: underline dotted;
  text-underline-position: under;
}
.ProseMirror .chl {
  background: yellow;
}

.bigicon svg {
  vertical-align: -.4em;
  height: 1.5em;
  width: 1.5em;
}
.ProseMirror p, .ProseMirror figcaption {
  margin-bottom: .5em;
}
.ProseMirror cite {
  background: #eee;
  border: 1px solid cyan;
}
.ProseMirror mjx-container {
  pointer-events: none;
}
.pp-eq {
  width: 100%;
}
.pp-section .pp-eq>mjx-container[display="true"], div>.pp-eq>mjx-container[display="true"] {
  display: inline;
}
.ProseMirror pre {
  tab-size: 4;
  padding: 3px 1em;
}

.editor-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ProseMirror {
  padding: 4px 8px 4px 14px;
  line-height: 1.5;
  outline: none;
  flex-grow: 1;
  overflow: auto;
}
.ProseMirror-selectednode {
  outline: 2px solid #8cf;
}

.ProseMirror ul,
.ProseMirror ol {
  list-style-position: outside;
}
.ProseMirror li>*{
  vertical-align: top;
  margin-left: 1em;
}
.ProseMirror li > p:first-child {
  margin-left: .2em;
}
/* Make sure li selections wrap around markers */
.ProseMirror li {
  position: relative;
}
li.ProseMirror-selectednode {
  outline: none;
}

li.ProseMirror-selectednode:after {
  content: "";
  position: absolute;
  left: -32px;
  right: -2px; top: -2px; bottom: -2px;
  border: 2px solid #8cf;
  pointer-events: none;
}
.ProseMirror ul, .ProseMirror ol {
  padding-left: 30px;
}

/* from prosemirror-tables/table.css */
.ProseMirror .column-resize-handle {
  position: absolute;
  right: -2px; top: 0; bottom: 0;
  width: 4px;
  z-index: 20;
  background-color: #adf;
  pointer-events: none;
}
.ProseMirror.resize-cursor {
  cursor: ew-resize;
  cursor: col-resize;
}
.ProseMirror .selectedCell:after {
  z-index: 2;
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(200, 200, 255, 0.4);
  pointer-events: none;
}

.off-canvas {
  overflow: auto;
}
.off-canvas.right>.off-canvas-content {
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100%;
}
.off-canvas.right>.off-canvas-sidebar {
  transform: translateX(100%);
  right: 0;
  left: unset;
  height: 100%;
}
.off-canvas.right>.off-canvas-sidebar.active {
  transform: translateX(0);
}

.off-canvas-sidebar .panel {
  height: 100%;
}

.tab .tab-item .container {
  border-bottom: .1rem solid transparent;
  color: inherit;
  padding: .4rem .2rem .3rem .2rem;
  text-decoration: none;
}
.tab .tab-item.active .container {
  border-bottom-color: #5755d9;
  color: #5755d9;
}

.bg-white {
  background: white;
}

