/* General */

:root {
	--colorstr: #e83810;
	--colordex: #c4985a;
	--colorcon: #80821d;
	--colorwis: #7ad468;
	--colorint: #378299;
	--colorcha: #b214c9;
	--cscolorbg: #eeeeff;
    --cscolortext: #660000;
	--cscolorinput: #ffffff;
    --cscolorborder: #B5995A;
    --cscolordecor: #d1d1ee;
}
.hide {
	display: none !important;
}
input[type=checkbox] {
	cursor: pointer;
}
div.box {
	margin-top: 10px;
}
form.charsheet {
	width: 1360px;
	right: 0;
	left: 0;
	margin: 10px auto;
	font-family: "Verdana", sans-serif;
}
form.charsheet .list-section, .label-container, .attacks, .equipment  {
	background-color: var(--cscolorbg);
}
form.charsheet label {
	color: var(--cscolortext);
	text-transform: uppercase;
	font-size: 12px;
}
form.charsheet div.textblock {
	display: flex;
	flex-direction: column-reverse;
	width: 100%;
	align-items: center;
}
form.charsheet div.textblock label {
	text-align: center;
	border: 1px solid var(--cscolorborder);
	border-top: 0;
	font-size: 10px;
	width: calc(100% - 20px - 2px);
	border-radius: 0 0 10px 10px;
	padding: 4px 0;
	font-weight: bold;
}
form.charsheet div.textblock textarea {
	border: 1px solid var(--cscolorborder);
}
form.charsheet ul {
	margin: 0;
	padding: 0;
}
form.charsheet ul li {
	list-style-image: none;
	display: block;
}
form.charsheet input, textarea {
	background-color: var(--cscolorinput);
	border: 0px;
}
form.charsheet ::-moz-placeholder {
	color: #bbb;
}
form.charsheet :-ms-input-placeholder {
	color: #bbb;
}
form.charsheet ::placeholder {
	color: #bbb;
}
form.charsheet header {
	display: flex;
	align-items: stretch;
}
form.charsheet header section {
	background-color: var(--cscolorbg);
}
form.charsheet header section.charname {
	border: 1px solid var(--cscolorborder);
	border-right: 0;
	border-radius: 10px 0 0 10px;
	padding: 5px 0;
	background-color: var(--cscolordecor);
	width: 30%;
	display: flex;
	flex-direction: column-reverse;
	bottom: 0;
	top: 0;
	margin: auto;
}
form.charsheet header section.charname input {
	padding: 0.5em;
	margin: 5px;
	border: 0;
}
form.charsheet header section.charname label {
	padding-left: 1em;
}
form.charsheet header section.misc {
	width: 70%;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	padding-left: 1em;
	padding-right: 1em;
}
form.charsheet header section.misc ul {
	padding: 10px 0px 5px 0px;
	display: flex;
	flex-wrap: wrap;
}
form.charsheet header section.misc ul li {
	width: 33.33333%;
	display: flex;
	flex-direction: column-reverse;
}
form.charsheet header section.misc ul li label {
	margin-bottom: 5px;
}
form.charsheet header section.misc ul li input {
	border: 0;
	border-bottom: 1px solid var(--cscolorborder);
}
form.charsheet main {
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin-top: 20px;
}
form.charsheet main textarea {
	width: calc(100% - 20px - 2px);
	height: 15em;
	font-size: 12px;
	text-align: left;
	border-radius: 10px;
	padding: 10px;
	resize: none;
	overflow: hidden;
	overflow-y: auto;
}
form.charsheet main div.label-container {
	position: relative;
	width: 100%;
	height: 18px;
	margin-top: 6px;
	border: 1px solid var(--cscolorborder);
	border-left: 0;
	text-align: center;
}
form.charsheet main div.label-container > label {
	position: absolute;
	left: 0;
	top: 1px;
	width: 100%;
	font-size: 8px;
}
form.charsheet main > section {
	width: 32%;
	display: flex;
	flex-direction: column;
}
form.charsheet main > section section.attributes {
	width: 100%;
	display: flex;
	flex-direction: row;
	box-sizing: border-box;
}
form.charsheet main > section section.attributes .label{
	color: var(--cscolortext);
}
form.charsheet main > section section.attributes div.scores {
	width: 35%;
	max-height: 1060px;
	background-color: var(--cscolordecor);
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	padding-bottom: 5px;
	margin-right: 15px;
}
form.charsheet main > section section.attributes div.scores label {
	font-size: 10px;
	font-weight: bold;
}
form.charsheet main > section section.attributes div.scores ul {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	height: 100%;
}
form.charsheet main > section section.attributes div.scores ul li {
	height: 100px;
	width: 100px;
	background-color: var(--cscolorbg);
	border: 1px solid var(--cscolorborder);
	text-align: center;
	display: flex;
	flex-direction: column;
	border-radius: 10px;
}
form.charsheet main > section section.attributes div.scores ul li .score {
	height: 84px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}
form.charsheet main > section section.attributes div.scores ul li div.score input {
	max-width: 100%;
	text-align: center;
	font-size: 40px;
	padding-top: 2px;
	border: 0;
	background: var(--cscolorinput);
}
form.charsheet main > section section.attributes div.scores ul li div.score input::-webkit-inner-spin-button {
	display: none;
}
form.charsheet main > section section.attributes div.scores ul li div.modifier {
	margin-top: 3px;
}
form.charsheet main > section section.attributes div.scores ul li div.modifier input {
	background: var(--cscolorinput);
	width: 48px;
	height: 32px;
	border: 1px inset var(--cscolorborder);
	border-radius: 20px;
	margin: -1px;
	text-align: center;
}
form.charsheet main > section section.attributes div.attr-applications {
	width: 65%;
	box-sizing: border-box;
}
form.charsheet main > section section.attributes div.attr-applications label {
	font-size: 10px;
}
form.charsheet main > section section.attributes div.attr-applications .label-container label {
	position: relative;
	top: -5px;
	padding: 3px 0px;
}
form.charsheet main > section section.attributes div.attr-applications div.inspiration {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
}
form.charsheet main > section section.attributes div.attr-applications div.inspiration div {
	border-radius: 0px 10px 10px 0px;
}
form.charsheet main > section section.attributes div.attr-applications div.inspiration input {
	appearance: none;
	-webkit-appearance: none;
	width: 30px;
	height: 28px;
	margin: 0px;
	padding: 1px 2px;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	background-color: var(--cscolorinput);
	box-sizing: border-box;
}
form.charsheet main > section section.attributes div.attr-applications div.inspiration input:checked {
	background-color: gold;
}
form.charsheet main > section section.attributes div.attr-applications div.proficiencybonus {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
}
form.charsheet main > section section.attributes div.attr-applications div.proficiencybonus div {
	border-radius: 0px 10px 10px 0px;
}
form.charsheet main > section section.attributes div.attr-applications div.proficiencybonus input {
	width: 30px;
	height: 28px;
	border: 1px solid var(--cscolorborder);
	text-align: center;
	border-radius: 10px;
	box-sizing: border-box;
}
form.charsheet main > section section.attributes div.attr-applications div.proficiencybonus input::-webkit-inner-spin-button {
	display: none;
}
form.charsheet main > section section.attributes div.saves, div.skills {
	width: 100%;
	box-sizing: border-box;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section {
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	padding: 10px 5px;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section div.label {
	margin-top: 10px;
	margin-bottom: 2.5px;
	text-align: center;
	text-transform: uppercase;
	font-size: 10px;
	font-weight: bold;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section ul li {
	display: flex;
	align-items: center;
	height: 36px;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section ul li > * {
	margin-left: 5px;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section ul li label {
	text-transform: none;
	font-size: 12px;
	text-align: left;
	margin: 0px 10px;
	order: 3;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section ul li label span.skill {
	font-weight: bold;
}
.skstr {
	color: var(--colorstr) !important;
}
.skdex {
	color: var(--colordex) !important;
}
.skcon {
	color: var(--colorcon) !important;
}
.skwis {
	color: var(--colorwis) !important;
}
.skint {
	color: var(--colorint) !important;
}
.skcha {
	color: var(--colorcha) !important;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section ul li input[type=text] {
	width: 30px;
	height: 20px;
	font-size: 12px;
	text-align: center;
	border: 0;
	border-bottom: 1px solid var(--cscolorborder);
	margin-bottom: 0px;
	padding: 3px;
	order: 2;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section ul li input[type=checkbox] {
	appearance: none;
	-webkit-appearance: none;
	width: 10px;
	min-width: 10px;
	height: 10px;
	min-height: 10px;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	margin: 0px 10px;
	order: 1;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section ul li input[type=checkbox]:checked {
	background-color: #000;
}
form.charsheet main > section section.attributes div.attr-applications div.list-section ul li button {
	display: flex;
	align-items: center;
	min-width: 15px;
	height: 20px;
	border: none;
	padding: 0px;
	background-color: var(--cscolorbg);
}
form.charsheet main > section div.passive-perception {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
}
form.charsheet main > section div.passive-perception input {
	width: 48px;
	height: 40px;
	text-align: center;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	margin-bottom: 0px;
}
form.charsheet main > section div.passive-perception div {
	height: 28px;
	border-radius: 0px 10px 10px 0px;
}
form.charsheet main > section div.passive-perception div label {
	transform: translateX(-5%);
	font-size: 12px;
	padding: 5px 0px;
}
form.charsheet main > section div.languages textarea {
	height: 6em;
	margin-bottom: 0px;
}
form.charsheet main > section div.languages label {
	background-color: var(--cscolorbg);
	width: 90%;
}
form.charsheet main > section div.otherprofs textarea {
	height: 13em;
	margin-bottom: 0px;
}
form.charsheet main > section div.otherprofs label {
	background-color: var(--cscolorbg);
	width: 90%;
}
form.charsheet main section.combat {
	background-color: var(--cscolordecor);
	display: flex;
	flex-wrap: wrap;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
}
form.charsheet main section.combat > div {
	overflow: hidden;
}
form.charsheet main section.combat > div.armorclass, form.charsheet main section.combat > div.initiative, form.charsheet main section.combat > div.speed {
	flex-basis: 33.333%;
}
form.charsheet main section.combat > div.armorclass > div, form.charsheet main section.combat > div.initiative > div, form.charsheet main section.combat > div.speed > div {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	margin-top: 10px;
}
form.charsheet main section.combat > div.armorclass > div label, form.charsheet main section.combat > div.initiative > div label, form.charsheet main section.combat > div.speed > div label {
	font-size: 8px;
	width: 75px;
	border: 1px solid var(--cscolorborder);
	border-top: 0;
	border-radius: 0 0 10px 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	background-color: var(--cscolorbg);
	text-align: center;
}
form.charsheet main section.combat > div.armorclass > div input, form.charsheet main section.combat > div.initiative > div input, form.charsheet main section.combat > div.speed > div input {
	height: 70px;
	width: 90px;
	border-radius: 10px;
	border: 1px solid var(--cscolorborder);
	margin: 0px;
	text-align: center;
	font-size: 30px;
}
form.charsheet main section.combat > div.hp {
	flex-basis: 100%;
}
form.charsheet main section.combat > div.hp > div.regular {
	background-color: var(--cscolorbg);
	border: 1px solid var(--cscolorborder);
	margin: 10px;
	margin-bottom: -1px;
	border-radius: 10px 10px 0 0;
}
form.charsheet main section.combat > div.hp > div.regular > div.max {
	display: flex;
	justify-content: space-evenly;
	align-items: baseline;
	padding-top: 5px;
	box-sizing: border-box;
}
form.charsheet main section.combat > div.hp > div.regular > div.max label {
	font-size: 10px;
	text-transform: none;
	color: var(--cscolortext);
}
form.charsheet main section.combat > div.hp > div.regular > div.max input {
	width: 20%;
	border: 0;
	border-bottom: 1px solid var(--cscolorborder);
	font-size: 12px;
	text-align: center;
}
form.charsheet main section.combat > div.hp > div.regular > div.current {
	display: flex;
	flex-direction: column-reverse;
}
form.charsheet main section.combat > div.hp > div.regular > div.current input {
	width: 100%;
	border: 0;
	margin-bottom: 10px;
	padding: 0.25em 0;
	font-size: 36px;
	text-align: center;
}
form.charsheet main section.combat > div.hp > div.regular > div.current label {
	font-size: 10px;
	margin-bottom: 5px;
	padding-bottom: 10px;
	text-align: center;
	font-weight: bold;
}
form.charsheet main section.combat > div.hp > div.temporary {
	margin: 0px 10px;
	border: 1px solid var(--cscolorborder);
	border-radius: 0 0 10px 10px;
	display: flex;
	flex-direction: column-reverse;
	background-color: var(--cscolorbg);
}
form.charsheet main section.combat > div.hp > div.temporary input {
	border: 0;
	margin-bottom: 10px;
	padding: 0.25em 0;
	font-size: 24px;
	text-align: center;
}
form.charsheet main section.combat > div.hp > div.temporary label {
	font-size: 10px;
	padding-bottom: 15px;
	text-align: center;
	font-weight: bold;
}
form.charsheet main section.combat > div.hitdice, form.charsheet main section.combat > div.deathsaves {
	flex: 1 50%;
	height: 100px;
}
form.charsheet main section.combat > div.hitdice > div, form.charsheet main section.combat > div.deathsaves > div {
	height: 80px;
}
form.charsheet main section.combat > div.hitdice > div {
	background-color: var(--cscolorbg);
	margin: 10px;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
}
form.charsheet main section.combat > div.hitdice > div > div.total {
	display: flex;
	align-items: baseline;
	justify-content: space-around;
	padding: 5px 0;
}
form.charsheet main section.combat > div.hitdice > div > div.total label {
	font-size: 10px;
	color: var(--cscolortext);
	margin: 0.25em;
	text-transform: none;
}
form.charsheet main section.combat > div.hitdice > div > div.total input {
	font-size: 12px;
	flex-grow: 1;
	border: 0;
	border-bottom: 1px solid var(--cscolorborder);
	width: 50%;
	margin-right: 0.25em;
	margin-bottom: 5px;
	padding: 0 0.25em;
	text-align: center;
}
form.charsheet main section.combat > div.hitdice > div > div.remaining {
	flex: 1;
	display: flex;
	flex-direction: column-reverse;
}
form.charsheet main section.combat > div.hitdice > div > div.remaining label {
	text-align: center;
	padding: 2px;
	font-size: 10px;
}
form.charsheet main section.combat > div.hitdice > div > div.remaining input {
	text-align: center;
	border: 0;
	margin-bottom: 5px;
	padding: 0px;
	flex: 1;
	font-size: 14px;
}
form.charsheet main section.combat > div.deathsaves > div {
	margin: 10px;
	background: var(--cscolorbg);
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	display: flex;
	flex-direction: column-reverse;
}
form.charsheet main section.combat > div.deathsaves > div > div.label {
	text-align: center;
}
form.charsheet main section.combat > div.deathsaves > div > div.label label {
	font-size: 10px;
}
form.charsheet main section.combat > div.deathsaves > div > div.marks {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
}
form.charsheet main section.combat > div.deathsaves > div > div.marks div.deathsuccesses, form.charsheet main section.combat > div.deathsaves > div > div.marks div.deathfails {
	display: flex;
	align-items: center;
}
form.charsheet main section.combat > div.deathsaves > div > div.marks div.deathsuccesses label, form.charsheet main section.combat > div.deathsaves > div > div.marks div.deathfails label {
	font-size: 8px;
	text-align: right;
	flex: 1 50%;
}
form.charsheet main section.combat > div.deathsaves > div div.bubbles {
	flex: 1 40%;
	margin-left: 5px;
}
form.charsheet main section.combat > div.deathsaves > div div.bubbles input[type=checkbox] {
	appearance: none;
	-webkit-appearance: none;
	width: 10px;
	height: 10px;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
}
form.charsheet main section.combat > div.deathsaves > div div.bubbles input[type=checkbox]:checked {
	background-color: #000;
}
form.charsheet main section.combat > div.conditions {
	width: 100%;
	display: flex;
	flex-direction: column-reverse;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	margin: 10px;
	padding: 5px;
	box-sizing: border-box;
	background-color: var(--cscolorbg);
}
form.charsheet main section.combat > div.conditions .label {
	text-align: center;
}
form.charsheet main section.combat > div.conditions textarea {
	width: 100%;
	height: 5.25em;
	border: 0;
	margin: 0px;
	box-sizing: border-box;
}
form.charsheet main section.attacks {
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	margin-top: 10px;
}
form.charsheet main section.attacks > div {
	margin: 10px;
	display: flex;
	flex-direction: column;
}
form.charsheet main section.attacks > div > label {
	order: 3;
	text-align: center;
}
form.charsheet main section.attacks > div > table {
	width: 100%;
}
form.charsheet main section.attacks > div > table th {
	font-size: 10px;
	color: var(--cscolortext);
}
form.charsheet main section.attacks > div > table input {
	width: calc(100% - 4px);
	border: 0;
	border-bottom: 1px solid var(--cscolorborder);
	background-color: var(--cscolorinput);
	font-size: 10px;
	padding: 3px;
}
form.charsheet main section.attacks > div textarea {
	width: 100%;
	height: 10em;
	border: 0;
	margin-bottom: 10px;
}
form.charsheet main section.equipment {
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	margin-top: 10px;
}
form.charsheet main section.equipment > div {
	padding: 10px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
form.charsheet main section.equipment > div > div.money ul {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}
form.charsheet main section.equipment > div > div.money ul > li {
	display: flex;
	align-items: center;
}
[data-tooltip] {
	position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 0px;
  left: 0px;
  transform: translateX(-105%);
  background: var(--cscolorbg);
  color: var(--cscolortext);
  border: 1px solid var(--cscolorborder);
  padding: 6px 8px;
  font-size: 10px;
  border-radius: 6px;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 150;
}
[data-tooltip]:hover::after {
  opacity: 1;
}
form.charsheet main section.equipment > div > div.money ul > li label {
	border: 1px solid var(--cscolorborder);
	border-radius: 10px 0 0 10px;
	border-right: 0;
	width: 20px;
	font-size: 8px;
	text-align: center;
	padding: 3px 0;
}
form.charsheet main section.equipment > div > div.money ul > li input {
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	width: 40px;
	margin: 0px;
	padding: 10px 3px;
	font-size: 12px;
	text-align: center;
}
form.charsheet main section.equipment > div > label {
	order: 3;
	text-align: center;
	flex: 100%;
}
form.charsheet main section.equipment > div > textarea {
	flex: 1;
	height: 21.25em;
	border: 0;
	margin: 0px 0px 10px 10px;
}
form.charsheet main section.flavor {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	padding: 8px;
	background: var(--cscolordecor);
	border-radius: 10px;
}
form.charsheet main section.flavor div:not(:first-child) {
	background: var(--cscolorbg);
	display: flex;
	flex-direction: column-reverse;
	margin-top: 10px;
	padding: 5px;
	border: 1px solid var(--cscolorborder);
}
form.charsheet main section.flavor div {
	background: var(--cscolorbg);
	display: flex;
	padding: 5px;
	border: 1px solid var(--cscolorborder);
}
form.charsheet main section.flavor .appearance {
	display: block;
}
form.charsheet main section.flavor .appearance ul {
	padding: 10px 0px 5px 0px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
}
form.charsheet main section.flavor .appearance ul.cs-thirds li {
	width: 30%;
	display: flex;
	flex-direction: column;
	padding: 0px 5px;
}
form.charsheet main section.flavor .appearance ul.cs-halves li {
	width: 45%;
	display: flex;
	flex-direction: column;
	padding: 0px 5px;
}
form.charsheet main section.flavor .appearance ul li label {
	margin-bottom: 5px;
}
form.charsheet main section.flavor .appearance ul li input {
	border: 0;
	border-bottom: 1px solid var(--cscolorborder);
	text-align: center;
}
form.charsheet main section.flavor div label {
	text-align: center;
	font-size: 10px;
	margin-top: 3px;
}
form.charsheet main section.flavor div textarea {
	border: 0;
	border-radius: 0;
	margin-bottom: 0px;
	width: 100%;
	height: 6em;
}
form.charsheet main section.flavor div:first-child {
	border-radius: 10px 10px 0 0;
}
form.charsheet main section.flavor div:last-child {
	border-radius: 0 0 10px 10px;
}
form.charsheet main section.features {
	width: 100%;
	padding-top: 10px;
}
form.charsheet main section.features div {
	margin-bottom: 10px;
	padding: 10px;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	display: flex;
	flex-direction: column-reverse;
	background-color: var(--cscolorbg);
}
form.charsheet main section.features div label {
	text-align: center;
}
form.charsheet main section.features div #cs-traits{
	border: 0;
	margin: 0px;
	padding: 5px;
	width: 100%;
	height: 16em;
}
form.charsheet main section.features div #cs-features {
	border: 0;
	margin: 0px;
	padding: 5px;
	width: 100%;
	height: 40.5em;
}
form.charsheet section.spellcasting {
	display: block;
	width: 100%;
	margin: 0px;
}
form.charsheet section.spellcasting .magics {
	display: flex;
	justify-content: space-between;
	column-gap: 10px;
	width: 100%;
	box-sizing: border-box;
	margin: 0px;
	padding:0px;
}
form.charsheet section.spellcasting .magics .spellcaststats {
	width: 50%;
	box-sizing: border-box;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	padding-left: 1em;
	padding-right: 1em;
	padding-top: 5px;
	background-color: var(--cscolorbg);
	text-align: center;
}
form.charsheet section.spellcasting .magics .spellcaststats ul {
	padding: 10px 0px 5px 0px;
	display: flex;
	flex-wrap: wrap;
	text-align: left;
}
form.charsheet section.spellcasting .magics .spellcaststats ul li {
	width: 25%;
	display: flex;
	flex-direction: column-reverse;
}
form.charsheet section.spellcasting .magics .spellcaststats ul li label {
	margin-bottom: 5px;
	font-size: 10px;
}
form.charsheet section.spellcasting .magics .spellcaststats ul li input {
	border: 0;
	border-bottom: 1px solid var(--cscolorborder);
	font-size: 20px;
}
form.charsheet section.spellcasting .spellslots {
	width: 50%;
	box-sizing: border-box;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	padding: 5px;
	background-color: var(--cscolorbg);
}
form.charsheet section.spellcasting .spellslots .label {
	text-align: center;
	font-size: 10px;
}
form.charsheet section.spellcasting .spellslots > div {
	display: flex;
	flex-direction: columm;
	flex-wrap: wrap;
	column-gap: 10px;
	width: 100%;
	margin: 0px;
	padding: 5px;
	box-sizing: border-box;
}
form.charsheet section.spellcasting .spellslots > div > div {
	display: flex;
	flex-direction: row;
	width: calc(33.35% - 7px);
	border: 1px solid var(--cscolorborder);
	margin: 0px;
	padding: 0px 5px 5px 5px;
	box-sizing: border-box;
}
form.charsheet section.spellcasting .spellslots > div > div label {
	font-size: 8px;
	margin-top: auto;
	padding: 0px 3px;
}
form.charsheet section.spellcasting .spellslots > div > div label:first-child {
	font-size: 12px;
	font-weight: bold;
}
form.charsheet section.spellcasting .spellslots input {
	width: 2em;
	border: 0;
	border-bottom: 1px solid var(--cscolorborder);
	margin: 0px 3px;
	padding: 3px;
	box-sizing: border-box;
}
form.charsheet section.spellcasting .spellslots .bubbles {
	height: 1em;
	margin-top: auto;
	padding: 0px;
	box-sizing: border-box;
}
form.charsheet section.spellcasting .spellslots .bubbles input {
	width: 1em;
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;
}
form.charsheet section.spellcasting .spells {
	width: 100%;
	box-sizing: border-box;
}
form.charsheet section.spellcasting .spells label {
	color: var(--cscolortext);	
}
form.charsheet section.spellcasting .spells div {
	width: 100%;
	box-sizing: border-box;
	box-sizing: border-box;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	margin-top: 10px;
	padding: 5px;
	background-color: var(--cscolorbg);
	text-align: center;
}
form.charsheet section.spellcasting .spells div table {
	width: 100%;
	margin: 10px 0px;
	border-collapse: collapse;
	font-size: 12px;
}
form.charsheet section.spellcasting .spells div table th {
	margin: 0px;
	padding: 0px;
	font-size: 12px;
	color: var(--cscolortext);
}
form.charsheet section.spellcasting .spells div table th:first-child {
	width: 1.75%;
}
form.charsheet section.spellcasting .spells div table th:not(:first-child) {
	min-width: 60px;
}
form.charsheet section.spellcasting .spells div table th:nth-child(2) {
	width: 20%;
	min-width: 250px;
}
form.charsheet section.spellcasting .spells div table th:nth-child(6) {
	width: 50%;
}
form.charsheet section.spellcasting .spells div table td {
	border: 1px solid var(--cscolorborder);
	margin: 0px;
	padding: 0px;
	text-align: center;
	background-color: var(--cscolorinput);
}
form.charsheet section.spellcasting .spells div table td input {
	border: none;
	width: 100%;
	height: 2.5em;
	margin: 0px;
	padding: 0px 3px;
	box-sizing: border-box;
}
form.charsheet section.spellcasting .spells div table td:last-child {
	width: 30px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
	box-sizing: border-box;
	background-color: var(--cscolorbg);
}
form.charsheet section.spellcasting .spells div table textarea {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	border: none;
	border-radius: none;
	margin: 0px;
	padding: 3px;
	box-sizing: border-box;
	font-size: 12px;
	text-align: left;
	resize: none;
	overflow: hidden;
	overflow-y: auto;
}
form.charsheet section.spellcasting .spellslots {
	width: 50%;
	box-sizing: border-box;
}
form.charsheet section.spellcasting .spells div table button {
	width: 20px;
	height: 20px;
	border: 1px solid var(--cscolorborder);
	border-radius: 5px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--cscolortext);
	background-color: var(--cscolordecor);
}
form.charsheet section.spellcasting button {
	border: 1px solid var(--cscolorborder);
	border-radius: 5px;
	color: var(--cscolortext);
	background-color: var(--cscolordecor);
}
.cs-colortheme {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 1px solid var(--cscolorborder);
	border-radius: 10px;
	margin-top: 10px;
	padding: 10px;
	background-color: var(--cscolorbg);
}
.cs-colortheme > button {
	max-width: 30%;
	border: 1px solid var(--cscolorborder);
	border-radius: 5px;
	color: var(--cscolortext);
	background-color: var(--cscolordecor);
}
.cs-colortheme .theme-content {
	display: none;
}
.cs-colortheme .theme-content.open {
	display: block;
	width: 100%;
}
.cs-colortheme .theme-toggle {
	cursor: pointer;
}
.cs-colortheme .theme-content ul {
	display: flex;
	align-items: center;
	justify-content: space-around;
	width: 100%;
	margin-top: 10px;
}
.cs-colortheme .theme-content li {
	display: flex;
	width: auto;
	padding: 5px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}
.cs-colortheme .theme-content button {
	border: 1px solid var(--cscolorborder);
	border-radius: 5px;
	margin-top: 5px;
	color: var(--cscolortext);
	background-color: var(--cscolordecor);
}
/* Edit Menu */
.saves li {
	position: relative;
}
.skills-list li {
	position: relative;
}
.edit-menu {
	display: none;
	width: 110px;
	position: absolute;
	left: 45%;
	transform: translateX(-50%);
	border: 1px solid var(--cscolordecor);
	border-radius: 10px;
	padding: 5px;
	background-color: var(--cscolorbg);
	box-shadow: 0 4px 4px rgba(0,0,0,0.45);
	z-index: 100;
}
.edit-menu::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--cscolorbg);
  z-index: 100;
}
.edit-menu input {
	width: 30px;
}
.edit-menu.open {
	display: block;
}
@media screen and (max-width: 1400px) {
	#content-vw {width: 100% !important;}
	form.charsheet {width: 100%;}
	form.charsheet main > section section.attributes div.scores ul li {width: 90%;}
	form.charsheet main > section section.attributes div.attr-applications div.list-section {padding: 10px 0px;}
	form.charsheet main > section section.attributes div.attr-applications div.list-section ul li label {margin: 0px 1px; font-size: 10px;}
	form.charsheet main > section section.attributes div.attr-applications div.list-section ul li input[type=checkbox] {margin: 0px 3px;}
	form.charsheet main > section div.otherprofs textarea {height: 11.75em;}
	form.charsheet main section.combat > div.hitdice > div > div.total label {font-size: 8px;}
	form.charsheet main section.combat > div.hitdice > div > div.total input {width: 30%;}
	form.charsheet main > section section.attributes div.attr-applications div.list-section ul li label span.skill {font-size: 6px;}
	form.charsheet section.spellcasting .magics .spellcaststats {width: 25%;}
	form.charsheet section.spellcasting .magics .spellcaststats ul li {width: 100%;}
	form.charsheet section.spellcasting .spellslots {width: 75%;}
	form.charsheet section.spellcasting .spellslots .spellslots-level {margin-top: 10px; padding-top: 10px;}
}
@media screen and (max-width: 991px) {
	main > .container {max-width: 991px; padding: 0px 20px;}
	form.charsheet main {flex-direction: column;}
	form.charsheet main > section {width: 100%; margin-bottom: 10px;}
	form.charsheet main section.combat > div.hitdice > div > div.total label {font-size: 10px;}
	form.charsheet main > section section.attributes div.attr-applications div.list-section ul li label {margin: 0px 5px; font-size: 1em;}
	form.charsheet main > section section.attributes div.attr-applications div.list-section ul li label span.skill {font-size: 10px;}
	form.charsheet main > section div.otherprofs {margin-bottom: 10px;}
	form.charsheet main section.combat > div.hp > div.regular > div.max {justify-content: center;}
	form.charsheet main section.combat > div.deathsaves > div > div.marks div.deathsuccesses label, form.charsheet main section.combat > div.deathsaves > div > div.marks div.deathfails label {font-size: 12px;}
	form.charsheet section.spellcasting .magics {flex-direction: column;}
	form.charsheet section.spellcasting .magics .spellcaststats {width: 100%; margin-bottom: 10px;}
	form.charsheet section.spellcasting .spellslots {width: 100%;}
	form.charsheet section.spellcasting .spellslots .label {display: flex; justify-content: center;}
	form.charsheet section.spellcasting .spellslots .bubbles input {width: 10px;}
	form.charsheet section.spellcasting .spellslots .spellslots-level {width: 48.5%;}
	form.charsheet section.spellcasting .spells > div {overflow-x: scroll;}
	form.charsheet section.spellcasting .spells > div table {min-width: 950px;}
	.cs-colortheme .theme-content ul {flex-direction: column;}
	.cs-colortheme .theme-content li {width: 100%; text-align: center;}
}