@import "headerbar.css";
@import "dnd.css";
@import "5e.css";

@font-face {
 font-family:BookInsanityRemake;
 src:url('/fonts/Bookinsanity.woff2');
 font-weight:normal;
 font-style:normal
}
@font-face {
 font-family:BookInsanityRemake;
 src:url('/fonts/Bookinsanity Bold.woff2');
 font-weight:bold;
 font-style:normal
}
@font-face {
 font-family:BookInsanityRemake;
 src:url('/fonts/Bookinsanity Italic.woff2');
 font-weight:normal;
 font-style:italic
}
@font-face {
 font-family:BookInsanityRemake;
 src:url('/fonts/Bookinsanity Bold Italic.woff2');
 font-weight:bold;
 font-style:italic
}
@font-face {
 font-family:ScalySansRemake;
 src:url('/fonts/Scaly Sans.woff2');
 font-weight:normal;
 font-style:normal
}
@font-face {
 font-family:ScalySansRemake;
 src:url('/fonts/Scaly Sans Bold.woff2');
 font-weight:bold;
 font-style:normal
}
@font-face {
 font-family:ScalySansRemake;
 src:url('/fonts/Scaly Sans Italic.woff2');
 font-weight:normal;
 font-style:italic
}
@font-face {
 font-family:ScalySansRemake;
 src:url('/fonts/Scaly Sans Bold Italic.woff2');
 font-weight:bold;
 font-style:italic
}
@font-face {
 font-family:MrEavesRemake;
 src:url('/fonts/Mr Eaves Small Caps.woff2');
 font-weight:normal;
 font-style:normal
}

:root{
  --tooltip-delay: 500ms;
}

/*#region Vars */
:root{
  --col-text-fixed-light: #d9e1dd; /* Color for text that should always be a 'light' color, like white */
  --col-text-fixed-dark: #211d20; /* Color for text that should always be a 'dark' color, like black */
}
/*#endregion */

/*#region Global styling */
select, input{
  color: var(--col-text);
}
#viewport-wrapper{
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow: auto;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-flow: column nowrap;
  scrollbar-width: none;
}
#page-content{
  overflow-y: auto;
  height:100%;
}
body{
  color: var(--col-text);
  background-image: var(--url-bg);
  background-color: var(--col-background);
  font-family: "Assistant", sans-serif;
  margin: 0px;
  font-size: 1.25rem;
  
  scrollbar-width: thin;
}
a{
  color: var(--col-link);
}
.link{
  color: var(--col-link);
  text-decoration: underline;
  cursor: pointer;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/*div[contenteditable]:not(.multiline){
  scrollbar-width: none;
  overflow-x: scroll;
  white-space: nowrap;
}*/
div[contenteditable]{
  word-break: break-word;
}
div:not([contenteditable]):empty:before{
  content:attr(data-default);
  color: var(--col-text-default);
}
div[contenteditable]:empty:not(:focus):before{
  content:attr(data-ph);
  color: var(--col-text-default);
}

.rel{
  position: relative;
}

*:is(h1, h2, h3, h4, h5, h6):first-child{
  margin-top: 0;
}
*:is(h1, h2, h3, h4, h5, h6){
  margin-bottom: .5em;
  color: var(--col-title);
}

#loadingDiv{
  z-index: 20;
  line-height: 100vh;
  text-align: center;
  font-size: 3em;
  color: #E9E9E9;
}

#confirmBox{
  background-color: var(--col-background);
  color: var(--col-fg);
  border: var(--col-background-accent);
  box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.5);
  max-width: 32em;
  margin: auto;
  margin-top: 4em;
  padding: .2em;
}

/*#contextmenu{
  position: fixed;
  background: var(--col-background);
  border: 1px solid var(--col-background-accent);
  box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.5);
  padding: 0px;
  max-width: 20em;
  min-width: 8em;
  z-index: 15;
}
#contextmenu .entry{
  border-bottom: 1px solid var(--col-background-accent);
  line-height: 1.2em;
}
#contextmenu .entry:last-child{
  border-bottom: none;
}
#contextmenu .entry:hover{
  background-color: var(--col-element-hover);
}*/

.indicator{
  border: 1px solid var(--col-background-accent);
  border-radius: 4em;
  width: 1em;
  height: 1em;
}

.subtitle{
  margin-top: -.2em;
  margin-left: 4px;
  font-size: .9em;
}

img.inlineicon{
  height: 1.1em;
  vertical-align: middle;
  margin-top: -0.1em;
}

img.inlineicon:not(:first-child){
  padding-left: 0.1em;
}img.inlineicon:not(:last-child){
  padding-right: 0.1em;
}

/* Editors */
select, input{
  background-color: var(--col-background);
  border: 1px solid var(--col-background-accent);
  border-radius: 2px;
  font-size: 1em;
  font-family: inherit;
  padding: 2px;
}
select.inline, input.inline{
  padding: 1px;
  font-size: .8em;
}

.hoverforchildren > *:not(.excluded){
  visibility: hidden;
}

.hoverforchildren:hover > *:not(.excluded){
  visibility: initial;
}

.activeforchildren > *:not(.excluded){
  visibility: hidden;
}

.activeforchildren.active > *:not(.excluded){
  visibility: initial;
}

.expandcaret{
  font-size: 1.2em;
  padding: 0;
  width: 1em;
}

.separator{
  height: 1px;
  width: 100%;
  border-top: 1px solid var(--col-text);
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  display: block;
}

/*#endregion */

/*#region Overlay */
.overlay{
  position: fixed;
  z-index: 10;
  width: 100%;
  height: 100%;
  background: rgba(50, 50, 50, 0.75);
}

#overlay{
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  padding: 2em;
  box-sizing: border-box;
}

#overlayContent{
  font-size: .8em;
  font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
  position: fixed;
  max-height: calc(100% - 6em);
  margin: auto;
  border-radius: .2em;
  border: 1px solid var(--col-border);
  background-color: var(--col-background);
  color: var(--col-text);
  z-index: 11;
  padding: 1em;
  align-self: center;
  overflow-y: scroll;
  scrollbar-width: thin;
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

#overlayContent :is(h1, h2, h3, h4, h5, h6){
  margin-bottom: .2em;
  margin-top: .1em;
}
#overlayContent h1{
  font-size: 1.8em;
  font-weight: 500;
}
#overlayContent h2{
  font-size: 1.6em;
  border-bottom: 1px solid var(--col-dnd-headers);
  font-weight: 500;
}
#overlayContent h3{
  font-size: 1.4em;
  font-weight: 400;
}
#overlayContent h4{
  font-size: 1.2em;
  font-weight: 400;
}
#overlayContent h5{
  font-size: 1.1em;
  font-weight: 400;
}

#overlayContent > .hint{
  position: absolute;
  right: .2em;
  top: .2em;
  font-size: 1.3em;
}

#overlayContent .labelledValue:not(.top) .label{
  width: 6em;
}

.selectmapoverlay-entrycontent{
  height: 1.5em;
}

.div-overlay{
  width: 100%;
  height: 100%;
  background-color: rgba(var(--rawcol-background), .75);
  color: var(--col-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.div-overlay.light{
  background-color: rgba(var(--rawcol-background-accent), .75);
  color: var(--col-text);
}

.div-overlay > *{
  margin: auto;
}
/*#endregion*/


/*#region Buttons */
/* Button styles */
button, .btn{
  text-decoration: none;
  border-radius: .25rem;
  display: inline-block;
  text-align: center;
  padding-left: 0.5em;
  padding-right: 0.5em;
  cursor: pointer;
  line-height: 1.5em;
  transition: color .15s ease-in-out, background-color .15s ease-in-out;
  background-color: var(--col-element-background);
  color: var(--col-element-text);
  border: 2px solid var(--col-element-border);
}
button:hover:not(.active), .btn:hover:not(.active){
  background-color: var(--col-element-hover);
  color: var(--col-element-text-hover);
}
button.active, .btn.active{
  background-color: var(--col-element-active);
  color: var(--col-element-text-active);
}

.filter-pos{
  background-color: var(--col-positive);
  color: var(--col-text);
}

.filter-neg{
  background-color: var(--col-negative);
  color: var(--col-text);
}

/* Special buttons */
button:has(i):not(.inline):not(:has(:not(i))){ /* Buttons with only a i child */
  height: 2em;
  line-height: 2em;
  text-align: center;
}
button:has(i):not(.inline):not(:has(:not(i))) > i{ /* Buttons with only a i child */
  width: 1em;
  height: 1em;
}

button.inline{
  font-size: 0.8em;
  margin-left: 0.2em;
  margin-right: 0.2em;
  padding: 1px;
}
button.inline.right{
  float: right;
}

button.tab{
  background: none;
  border: none;
  padding-bottom: .2em;
  border-radius: 0px;
  color: var(--col-tabbutton);
  font-weight: 700;
  font-size: .9em;
}
button.tab:hover{
  color: var(--col-tabbutton-hover);
  background: none;
}
button.tab.active{
  background: none;
  color: var(--col-tabbutton-active);
  border-bottom: 4px solid var(--col-tabbutton-active-border);
}
/*#endregion*/

/* Invisible editors */
.invisible{
  border: none !important;
  outline: none !important;
  background: none;
  border-radius: 2px;
  font-size: 1em;
  margin: 0;
  box-sizing:border-box;
  font-family: inherit;
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: inherit;
}
.invisible:hover{
  box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.5);
  -moz-appearance: auto;
  -webkit-appearance: auto;
}
.invisible:disabled{
  opacity: .75;
  color: var(--col-text-disabled);
  background: none !important;
}
.invisible:disabled:hover{
  box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.25);
}
.invisible:focus, .invisible:focus-visible{
  background-color: var(--col-background);
  box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.5);
  -moz-appearance: auto;
  -webkit-appearance: auto;
}

/* Hiding of items */
.removed{
  display: none !important;
  opacity: 0 !important;
}
.removed-search{
  display: none !important;
  opacity: 0 !important;
}
.removed-filter{
  display: none !important;
  opacity: 0 !important;
}
.hidden{
  visibility: hidden;
  opacity: 0 !important;
}
.hidesmooth{
  transition: opacity 250ms, visibility 250ms;
}

/*#region Flex */
.flex{
  display: flex;
  -ms-flex-align: no-wrap;
}
.flex.row{
  flex-direction: row;
}
.flex.column{
  flex-direction: column;
}
.flex.wrap{
  flex-wrap: wrap;
}

/* Content alignment */
.flex.c-start{
  justify-content: flex-start;
}
.flex.c-end{
  justify-content: flex-end;
}
.flex.c-center{
  justify-content: center;
}
.flex.c-spaced{
  justify-content: space-between;
}
.flex.ai-center{
  align-items: center;
}
.flex.ai-end{
  align-items: flex-end;
}
.flex.ai-start{
  align-items: flex-start;
}
.ai-baseline{
  align-items: baseline;
}


/* Children */
.flex > .grow{
  flex-grow: 1;
}
.flex > .noshrink{
  flex-shrink: 0;
}
.flex > .shrink{
  flex-shrink: 2;
}
.flex > .smallbasis{
  flex-basis: 1px;
}
.flex > .end{
  align-self: flex-end;
}
.w-10{
  width: 10%;
}
.flex.gap-02 > .w-10{
  width: calc(10% - .18em);
}
.flex.gap-05 > .w-10{
  width: calc(10% - .45em);
}
.flex.gap-1 > .w-10{
  width: calc(10% - .9em);
}
.flex.gap-2 > .w-10{
  width: calc(10% - 1.8em);
}
.w-25{
  width: 25%;
}
.flex.gap-02 > .w-25{
  width: calc(25% - .15em);
}
.flex.gap-05 > .w-25{
  width: calc(25% - .375em);
}
.flex.gap-1 > .w-25{
  width: calc(25% - .75em);
}
.flex.gap-2 > .w-25{
  width: calc(25% - 1.5em);
}
.w-33{
  width: 33%;
}
.flex.gap-02 > .w-33{
  width: calc(33% - .15em);
}
.flex.gap-05 > .w-33{
  width: calc(33% - .35em);
}
.flex.gap-1 > .w-33{
  width: calc(33% - .7em);
}
.flex.gap-2 > .w-33{
  width: calc(33% - 1.35em);
}
.w-50{
  width: 50%;
}
.flex.gap-02 > .w-50{
  width: calc(50% - .1em);
}
.flex.gap-05 > .w-50{
  width: calc(50% - .25em);
}
.flex.gap-1 > .w-50{
  width: calc(50% - .5em);
}
.flex.gap-2 > .w-50{
  width: calc(50% - 1em);
}
.w-66{
  width: 66%;
}
.flex.gap-02 > .w-66{
  width: calc(66% - .1em);
}
.flex.gap-05 > .w-66{
  width: calc(66% - .25em);
}
.flex.gap-1 > .w-66{
  width: calc(66% - .5em);
}
.flex.gap-2 > .w-66{
  width: calc(66% - 1em);
}
.w-75{
  width: 75%;
}
.flex.gap-02 > .w-75{
  width: calc(75% - .1em);
}
.flex.gap-05 > .w-75{
  width: calc(75% - .25em);
}
.flex.gap-1 > .w-75{
  width: calc(75% - .5em);
}
.flex.gap-2 > .w-75{
  width: calc(75% - 1em);
}
.w-100{
  width: 100%;
}

.flex > .h-50{
  height: 50%;
}

/* Gaps */
.gap-02{
  gap: .2em;
}
.gap-05{
  gap: .5em;
}
.gap-1{
  gap: 1em;
}
.gap-2{
  gap: 2em;
}
/*#endregion*/

/*#region FloatingBox */
.floatingBoxContainer{
  display: flex;
  flex-flow: row wrap;
  gap: 2em;
  justify-content: center;
}

.floatingBox{
  border: 1px solid var(--col-background-accent);
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  border-radius: 4px;
  padding: 1em;
  height: fit-content;
  position: relative;
}

.floatingBox > h1{
  font-size: 1.5em;
  font-family: Convergence, Arial, sans-serif;
  color: var(--col-dnd-headers);
  margin-bottom: .1em;
  margin-top: 0;
}

.floatingBox .titleicons{
  margin-top: -1em;
  margin-right: -1em;
  margin-left: 1em;
}

/*#endregion*/

/* #region Popup */
.popup{
  position: absolute;
  max-width: 80vw;
  max-height: 100vh;
  z-index: 11;
  display: flex;
  border-radius: 2px;
  padding: .2em;
  box-shadow: 0px 0px 3px 1px rgba(0,0,0,.75);
  cursor: initial;
  background-color: var(--col-background);
}

/* Location Tree*/
.loctree-entry{
  padding: .2em;
  cursor: pointer;
}
.loctreechild{
  margin-left: .2em;
}

/* #endregion Popup */


/*#region Tooltip */
/* A container having a tooltip always has the .tooltip class.
It can either have a data-tooltip argument, displaying it's text automatically or a subelement with tooltip content
The default position is below the element, but can be adjusted with other classes */


.tooltip{
  position: relative;
}
.tooltip.indicated{
  border-bottom: 1px dashed var(--col-text);
}

/* Applies to all tooltip content elements */
.tooltip::before, .tooltip > .tt{
  position: absolute;
  z-index: 1;
  
  padding: 5px;
  box-sizing: border-box;
  border-radius: 6px;
  background-color: var(--col-background-accent);
  color: var(--col-text);

  visibility: hidden;
  opacity: 0;
  transition: opacity 250ms;

  font-size: 0.9rem;
  font-family: Arial;
  font-weight: normal;
  text-align: left;
  text-rendering: initial;
  font-style: normal;
  font-variant: normal;
  line-height: initial;

  width: 100%;
  top: 100%;
  margin-top: 1.2em;
}

/* Applies only to tooltips using data-tooltip */
.tooltip[data-tooltip]::before {
  content: attr(data-tooltip);
  text-align: center;
}


/* Applies to all arrows of tooltip content elements */
.tooltip[data-tooltip]::after, .tooltip > .tt::after{
  content: "";
  position: absolute;

  visibility: hidden;
  opacity: 0;
  transition: opacity 250ms;

  border: 1em solid transparent;
  border-color: transparent transparent var(--col-background-accent) transparent;
}

/* Applies only to arrows of tooltips using data-tooltip */
.tooltip[data-tooltip]::after{
  margin-top: .3em;
  left: 50%;
  transform: translateX(-50%);
}

/* Applies only to arrows of tooltips using tt subelements */
.tooltip > .tt::after{
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
}

/* Applies to all tooltip content elements */
.tooltip[data-tooltip]:hover::before, .tooltip[data-tooltip]:hover::after, .tooltip:hover > .tt, .tooltip:hover > .tt::after {
  transition-delay: var(--tooltip-delay);
  visibility: visible;
  opacity: 1;
}

.tooltip.narrow:before, .tooltip.narrow > .tt{
  width: 6em;
}
.tooltip.medium:before, .tooltip.medium > .tt{
  width: 12em;
}
.tooltip.wide:before, .tooltip.wide > .tt{
  width: 20em;
}

/* Sides currently don't work correctly
.tooltip.right:before, .tooltip.right > .tt{
  margin-top: 0;
  top: 50%;
  transform:translateY(-50%);

  left: 100%; 
  margin-left: 1.5em;
}
.tooltip.right[data-tooltip]::after{
  margin-top: 0;
  transform: translateX(0);

  top: 50%;
  transform:translateY(-50%);
  
  left: 100%;
  margin-left: .3em;
  border-color: transparent var(--col-background-accent) transparent transparent;
}
.tooltip.right > .tt::after{
  right: 0;
  transform: translateX(0);

  top: 50%;
  transform:translateY(-50%);
  border-color: transparent var(--col-background-accent) transparent transparent;
}

.tooltip.left:before, .tooltip.left > .tt{
  top: 50%;
  transform:translateY(-50%);
  margin-top: 0;

  right: 100%;
  margin-right: 1.5em;
}
.tooltip.left[data-tooltip]::after{
  margin-top: 0;
  transform: translateX(0);

  top: 50%;
  transform:translateY(-50%);
  
  right: 100%;
  margin-right: .3em;
  border-color: transparent transparent transparent var(--col-background-accent);
}
.tooltip.left > .tt::after{
  left: 0;
  
  right: 0;
  top: 50%;
  transform:translateY(-50%);
  border-color: transparent transparent transparent var(--col-background-accent);
}

.tooltip.top{
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 1.5em;
}
.tooltip.top[data-tooltip]::after{
  margin-top: 0;

  bottom: 0;
  margin-bottom: .3em;
  border-color: var(--col-background-accent) transparent transparent transparent;
}
.tooltip.top > .tt::after{
  top: 100%;

  border-color: var(--col-background-accent) transparent transparent transparent;
}*/

/*
.tooltip.top
.tooltip.bottom{
  margin-left: calc(-12em / 2);
}
.tooltip.top.narrow
.tooltip.bottom.narrow{
  margin-left: calc(-6em / 2);
}
.tooltip.top.wide
.tooltip.bottom.wide{
  margin-left: calc(-20em / 2);
}*/
/*#endregion*/


/*#region Labels */
.labelledValue{
  display: flex;
  align-items: baseline;
  gap: 0.2em;
}
.labelledValue > .grow{
  flex-basis: 1em;
  flex-grow: 1;
}
.labelledValue.input > *:not(:is(input, select)){
  line-height: 1.5em;
}

.labelledValue.top{
  flex-direction: column;
}
.labelledValue.top > *{
  width: 100%;
  flex-direction: column;
  gap: 0.1em;
}

.center{
  text-align: center;
}
/*#endregion*/

/*#region Flavors */
.warning{
  color: var(--col-warning);
  border-color: var(--col-warning-border);
  background-color: var(--col-warning-bg);
}
.error{
  color: rgb(250, 53, 53);
}
.invalid{
  border-color: red;
  box-shadow: 0 0 2px red;
}
.invalid-hint{
  position: fixed;
  max-width: 8em;
  z-index: 100;
}
.success{
  border-color: green;
  box-shadow: 0 0 2px green;
}
button.success{
  background-color: #023b02;
  color: white;
}
/*#endregion*/

/*#region Messagebox */
#messagebox{
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 30;
  min-width: 40%;
  max-width: 80%;
  line-height: 1em;
  background: #464646;
  color: white;
  border: 1px solid rgb(217, 217, 217);
  -webkit-box-shadow: 0px 0px 1px 1px rgba(217, 217, 217,0.5);
  -moz-box-shadow: 0px 0px 1px 1px rgba(217, 217, 217,0.5);
  box-shadow: 0px 0px 1px 1px rgba(217, 217, 217,0.5);
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  padding: 0.8em 4em 0.8em 4em;
  margin: auto;
  border-radius: 4px;
}
/*#endregion*/

/*#region Symbols */
.arrow{
  max-width: 8em;
}
.arrow::before {
  content: " ";
  border: solid #464646;
  border-width: 0 0.75em 0.75em 0;
  display: inline-block;
  padding: 1em;
}
.arrow.right::before{
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}
.arrow.left::before{
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}
/*#endregion*/

/*#region Content */
#content{
  display: flex;
  flex-flow: column nowrap;
  height: 100%;
  justify-content: flex-start;
}
#content[data-sourcetype]{
  font-size: .7em;
}

#subnav{
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  margin:auto;
  align-items: center;
  border-bottom: 4px solid var(--col-nav-bg);
  width: 95%;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
}
#subnav > *{
  height: 100%;
  cursor: pointer;
  border: none;
  border-right: 1px solid var(--col-nav-bg);
  flex-grow: 1;
  text-align: center;
  line-height: 3rem;
}
#subnav > *:last-child{
  border-right: none;
}

.submenu{
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow-y: auto;
  flex-grow: 1;
  margin-top: 1rem;
  margin-bottom: .5rem;
  margin-right: 4rem;
  margin-left: 4rem;
}
.submenu#class {
  overflow-y: unset;
}
.tablearea{
  width: 80%;
  max-width: 1000px;
  display: flex;
  flex-flow: column nowrap;
  overflow-y: auto;
}
#class > .tablearea{
  max-width: 300px;
}
.tablearea > .title{
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding-top: 1em;
}
.tablearea > .title > *:first-child{
  font-size: 1.5em;
  font-weight: bold;
}
.contentarea{
  width: 100%;
  max-width: 600px;
}
#class > .contentarea{
  max-width: 1200px;
}
.tablearea .dnd-block{
  margin-top: .8rem;
}
.contentarea > *:not(:first-child){
  margin-top: .4rem;
}
.contentarea > .dnd-header:not(:first-child){
  margin-top: .8rem;
}

.floatingparent{
  position: relative;
}



.table-filteroptions{
  position: fixed;
  top: 110px;
  max-width: inherit;
  width: 100%;
  z-index: 11;
}
.table-filteroptions > div{
  width: calc(100% - 4em);
  margin-left: 2em;
  background: var(--col-background);
  padding: .5em;
  border: 1px solid var(--col-background-accent);
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  border-radius: 4px;
}
.table-filteroptions .filter{
  padding-bottom: .4em;
  border-bottom: 1px solid var(--col-background-accent);
  margin-bottom: .2em;
}
.table-filteroptions .filter:last-child{
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}
.table-filteroptions .filterbuttons{
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.filterbutton > button{
  padding-left: .2em;
  padding-right: .2em;
}
.table-filteroptions p{
  margin: 0;
  margin-bottom: 4px;
}

/* Table Customization */
.tablearea .table > .tr{
  cursor: pointer;
}
.tablearea .tr:hover{
  background-color: var(--col-background-accent);
}
/*#endregion*/

/*#region Div-Tables */
.table-headergroup{
  display: flex;
  flex-wrap: nowrap;
}
.table-headergroup > div:not(:empty){
  border-bottom: 1px solid var(--col-border);
  font-weight: bold;
  text-align: center;
}
.table-header{
  display: flex;
  flex-wrap: nowrap;
  font-weight: bold;
}
.table-header .marged{
  margin-top: .75em;
}
.table-header.scroll{
  width: calc(100% - 9px);
}
.table{
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: thin;
  border-collapse: collapse;
  display: block;
  margin-right: -9px;
  box-sizing: border-box;
}
.table > .tr{
  display: flex;
  justify-content: start;
  width: 100%;
  border-bottom: 1px solid var(--col-background-accent);
}
.table > .tr.group{
  border-bottom: 1px dotted var(--col-background-accent);
}
.table > .tr.stripe:nth-child(2n+1){
  background-color: var(--col-dnd-tablestripe);
}
.faketr{ /* Can be used to mimic the behaviour of a single table row outside of a table */
  width: 100%;
  overflow-x: hidden;
  border-collapse: collapse;
  display: block;
  margin-right: -9px;
  display: flex;
  justify-content: start;
  box-sizing:border-box;
  align-items: center;
}
.tc, .faketr{
  padding: 2px;
}
.tc.grow, .faketr > .grow{
  flex-basis: 10px;
  flex-grow: 1;
}
.tc > .expand{
  position: absolute;
  top: .2em;
  right: .2em;
}

.tc > .buttonCol{
  padding: 1px;
  line-height: 1.1em;
  width: 100%;
  height: 100%;
}
.tc > select{
  padding: 1px;
  line-height: 1.1em;
  width: 100%;
}
.tc .buttonInline{
  width: 1.2em;
  padding: 0px;
  line-height: 1.2em;
  height: 1.2em;
}

.tc-subtitle, .faketr .subtitle{
  margin-top: -.2em;
  padding-left: .1em;
  font-style: italic;
  color: var(--col-annotation);
  font-size: .8em;
}
.table div[contenteditable].expands:not(:focus){
  max-height: 1.2em;
  overflow-y: clip;
}
.table div[contenteditable].expands:focus{
  min-height: 4.8em;
  max-height: unset;
  scrollbar-width: thin;
}
.table .tableseparator, .faketr.tableseparator{
  font-weight: bold;
  padding-top: .4em;
}

.hpData-tabled > .hitDice{
  margin-top: .2em;
  text-align: center;
  font-size: .9em;
}
.hpData-tabled{
  padding: .2em;
}
.hpData div, .hpData-tabled div{
  width: 100%;
  text-align: center;
}
.hpData-tabled input{
  font-size: 1em;
  width: 80%;
  text-align: center;
}
/*#endregion*/

/*#region Sidebar & Browser */
.sidebar-left{
  border-right: 2px solid var(--col-border);
}
.sidebar-right{
  border-left: 2px solid var(--col-border);
}

.browser{
  width: 100%;
  padding: .2em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: .1em;
}

.browser .title{
  font-weight: bold;
  border-bottom: 1px solid var(--col-border);
  padding-top: .2em;
  margin-bottom: .4em;
  min-height: 1em;
}

.browser .subtitle{
  font-size: 1em;
  font-weight: bold;
  padding-top: 1em;
  min-height: 1em;
}

.browser .addbutton{
  padding-top: .2em;
  margin-bottom: .4em;
  min-height: 1em;
}

.browser.block{
  border: 2px solid var(--col-border);
  border-radius: 2px;
  box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.5);
}

.browserEntry{
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
}

.browserEntry > span{
  margin-left: .5em;
}

.browserEntry.active{
  background-color: var(--col-element-active);
}
/*#endregion*/