#content {
	overflow-y: scroll;
	overflow-x: hidden;

	position: absolute;

	top: 100px;
	bottom: 100px;

	left: 0px;
	right: 0px;

	min-width: 760px;

	margin-top: 0px !important;

	scrollbar-color: #66cccc #000000;
}

#appbox > header {

    text-align: right;

	border-bottom: 2px dashed #66cccc80;

	padding-bottom: 5px;

	margin-left: -15px;
	margin-right: -15px;
	margin-bottom: 25px;
}

#appbox > header > img {
    float: right;
    display: block;

	width: 24px;
	cursor: pointer;
	opacity: 75%;

	filter: invert(76%) sepia(86%) saturate(236%) hue-rotate(123deg) brightness(84%) contrast(90%);
}

#appbox > header > ul > li > img {
    width: 32px;
}

#appbox > header > ul > li {
    font-family: Verdana;
    font-size: 12pt;
    color: #66cccc;

    font-variant: small-caps;
}

#appbox > header > img:hover {
	opacity: 100%;
}

.error {
	text-wrap: wrap;
	color: #ff0000 !important;
	font-size: 10pt !important;
	display: none;
	font-style: italic;
}

/* panes layout */
#main-pane {
    display: flex;
    gap: 10px;
}

#operations-pane {
    flex: 1 0 0;
}

#tools-pane {
    width: 200px;

    margin: 0;
    padding: 2px;
    border-spacing: 0;
}

.config-pane {
    border-collapse: collapse;
    width: 400px;
    margin: 5px;
}

/* tools list layout */
#tools-pane .drag-item > table {
    width: 100%;
}

#tools-pane .drag-item .col1 {
    text-align: center;
    width: 30px;
}

#tools-pane .drag-item .col1 img {
    text-align: center;
    width: 30px;

    margin-right: 5px;

    width: 16px;
    height: 16px;

    filter: invert(76%) sepia(86%) saturate(236%) hue-rotate(123deg) brightness(84%) contrast(90%);
}

#tools-pane .drag-item .col2 {
    width: auto;

    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    font-size: 10pt;

    color: #66cccc;
}

#tools-pane .drag-item .col3 {
    text-align: center;
    width: 30px;
}

#tools-pane .drag-item .col3 li > img {
    width: 16px;
}

#tools-pane .drag-item table
{
    border: 1px solid #00000000;
    border-radius: 4px;
    background-color: #00000000;
    cursor: default;
}

#tools-pane .drag-item:hover table
{
    border-color: #66cccc40;
    background-color: #66cccc20;
}

#tools-pane .drag-selected-item table
{
    border-color: #66cccc80 !important;
    background-color: #66cccc40 !important;
}

/* drag list layout */
#tools-pane .drag-list {
    padding: 5px;
    border: 1px solid #66cccc;
	border-radius: 5px;
	background:
			linear-gradient(45deg, #0b262640, #174d4d40 35%, #0b262640 80%),
		    	radial-gradient(circle at top, #174d4d80, #0b262680);

	box-shadow: 0px 0px 2px 2px #66cccc40,
 		    inset 0px 0px 2px 2px #66cccc40;
}

.drag-list > thead > tr > td {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    font-size: 10pt;

    color: #66cccc;
}

.drag-list > tfoot .toolbar {
    flex-wrap: wrap;
    visibility: hidden;
}

.drag-list > tfoot .toolbar li {
    font-size: 10pt;
    font-weight: normal;
    font-variant: small-caps;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #66cccc;
}

.drag-list > tfoot .toolbar li > img {
    width: 16px;
}

.drag-over table
{
    border-color: #66ccccff !important;
    background-color: #66cccc80 !important;
}

.config-pane thead .col2 {
    user-select: none;
}

/* add button layout */
.add-button {
    float: left;

    width: 16px;
    height: 16px;

    filter: invert(76%) sepia(86%) saturate(236%) hue-rotate(123deg) brightness(84%) contrast(90%);
    opacity: 50%;

    cursor: pointer;

    margin-top: 5px;
    margin-right: 5px;
}

.add-button:hover
{
    opacity: 100%;
}

/* config pane layout */
.config-pane > thead td
{
    border-bottom: 1px solid #66cccc80;
}

.config-pane  > thead .col1 {
    width: 40px;
    text-align: center;
}

.config-pane  > thead .col2 {
    width: auto;
    text-align: left;

    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14pt;
    font-weight: bold;

    color: #66cccc;
}

.config-pane  > thead .col3 {
    width: 40px;
    text-align: right;
}

.config-pane  > thead .col3 ul {
    float: right;
}

.config-pane > thead .col1 > img
{
    width: 32px;
    height: 32px;

    filter: invert(76%) sepia(86%) saturate(236%) hue-rotate(123deg) brightness(84%) contrast(90%);
}

.config-pane thead li > img {
    width: 24px;
}

.config-pane tbody .toolbar {
    display: block;
    text-align: center;

    margin-top: 15px;
    margin-bottom: 10px;
}

.config-pane tbody .toolbar img {
    width: 24px;
}

#operations-pane {
	overflow-y: scroll;
	overflow-x: hidden;

	max-height: 350px;

	scrollbar-color: #66cccc #000000;
}

#operations-pane > div > hr
{
    border: 1px dashed #66cccc80;
    
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

div[data-disabled="1"]
{
    opacity: 40% !important;
    filter: grayscale(1.0);
}

div[data-disabled="1"] tbody
{
    pointer-events: none;
}

/* fieldsets */
#operations-pane > div {
    display: none;
}

#operations-pane fieldset {
    display: none;
    
    border: none;

    margin: 0;
    padding: 0;
}

fieldset div {
    margin-bottom: 2px;
}

/* main settings */
#main-settings .toolbar {
    display: block;
    text-align: center;

    margin-top: 5px;
    margin-bottom: 10px;
}

#main-settings .toolbar img {
    width: 32px;
}

#main-settings fieldset {
    display: none;
    
    border: none;

    margin: 0;
    padding: 0;
}

/* xy list */
#operations-pane .xy-list img {
    width: 16px;
}

#operations-pane .xy-list .drag-item * {
    margin: 0;
    padding: 0;
}

#operations-pane .xy-list .drag-item table {
    margin-left: 20px !important;
}

#operations-pane .xy-list .drag-item td {
    padding: 2px !important;
}

#operations-pane .xy-list .drag-item input {
    text-align: center;
}

/* toolbar class */
.toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;

    padding: 0px;
    margin: 0px;
}

.toolbar > li:has(img) {
    display: inline-block;

    padding: 2px;
    margin: 1px;

    background-color: #66cccc20;
    border: 1px solid #66cccc80;
    border-radius: 1px;

    opacity: 60%;

    cursor: pointer;
}

.toolbar > li:has(img):not([disabled]):hover, .toolbar-item-active:not([disabled]) {
    opacity: 100%;
}

.toolbar > li:has(img)[disabled] {
    cursor: not-allowed;

    filter: saturate(0%);
}

.toolbar > li > img {
    display: block;

    filter: invert(76%) sepia(86%) saturate(236%) hue-rotate(123deg) brightness(84%) contrast(90%);
}

.toolbar-caption {
    display: none;

    margin: 0px;
    padding: 0px;
    padding-left: 10px;

    font-family: Verdana;
    font-size: 14px;
    font-style: italic;
    font-variant: small-caps;

    white-space: nowrap;
}

/* loading icon */
#loading {
	display: none;

	width: 64px;
	height: 64px;

	z-index: 10;

	position: absolute;
	top: 50%;
	left: 50%;

    opacity: 75%;

	transform: translateX(-50%) translateY(-50%);

	filter: invert(76%) sepia(86%) saturate(236%) hue-rotate(123deg) brightness(84%) contrast(90%) blur(0.5px);

	border: 2px solid #66cccc;
	background-color: #66cccc40;

	box-shadow: 0px 0px 5px 5px #66cccc40,
				inset 0px 0px 5px 5px #66cccc20;

	border-radius: 50%;
}

@keyframes div-loading-animation {
	0% {
		filter: grayscale(0%);
        opacity: 100%;
	}

	100% {
		filter: grayscale(100%);
        opacity: 50%;
	}
}

.div-loading {
    animation-name: div-loading-animation;
	animation-duration: 0.5s;
	animation-timing-function: ease-in;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

/* data layout */
#top-pane {
    display: flex;
    align-items: end;
    gap: 15px;

    width: 100%;

    margin-bottom: 10px;
}

#tabbed-pane {
    flex: 3 0 0;
}

#main-settings, #data {
    
    overflow-y: scroll;
	overflow-x: hidden;

    height: 125px;

	scrollbar-color: #66cccc #000000;

    padding: 5px;
    border: 1px solid #66cccc80;
	border-radius: 5px;
	background:
			linear-gradient(45deg, #0b262620, #174d4d20 35%, #0b262620 80%),
		    	radial-gradient(circle at top, #174d4d40, #0b262640);

	box-shadow: 0px 0px 2px 2px #66cccc20,
 		    inset 0px 0px 2px 2px #66cccc20;
}

#main-settings fieldset {
    background: none !important;
}

#data {
    font-family: Verdana, Geneva, Tahoma, sans-serif !important;
    font-size: 10pt !important;

    color: #66cccc;

    user-select: none;
}

#data > p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    font-size: 10pt;

    color: #f44336;

    margin: 0;
}

#data > p + p {
    margin-top: 5px;
}

#data > p > img
{
    float: left;

    width: 16px;
    height: 16px;

    margin-right: 5px;
}

#data > img
{
    width: 16px;
    height: 16px;

    filter: invert(76%) sepia(86%) saturate(236%) hue-rotate(123deg) brightness(84%) contrast(90%);
}

/* tabbed pane class */
.tabbedpane > ul {
    display: block;

    padding: 0px;

    margin-bottom: 0px;
    margin-left: 25px;
}

.tabbedpane > ul > li {
    display: inline-block;

    margin-left: 0px;
    margin-right: 2px;
    padding: 5px;

    font-family: Verdana;
    font-size: 10pt;
    font-weight: bold;
    color: #66ccccc0;

    background-color: #66cccc20;
    background: linear-gradient(45deg, #66cccc20 0%, #66cccc40 30%, #66cccc20 100%);
    border: 2px solid #66ccccc0;
    border-radius: 5px 5px 0px 0px;

    box-shadow: 0px 0px 5px 5px #66cccc10,
                inset 0px 0px 5px 5px #66cccc10;

    text-shadow: none;

    border-bottom: none;

    cursor: pointer;
}

.tabbedpane > ul > li:hover, .tabbedpane-option-active {
    background: linear-gradient(45deg, #66cccc40 0%, #66cccc60 30%, #66cccc40 100%) !important;
    color: #66ccccff !important;

    border: 2px solid #66ccccff !important;
    border-bottom: none !important;

    text-shadow: 0px 0px 5px #66cccc20;

    color: #c0ffff !important;
}

.tabbedpane-option-active {
    font-size: 12pt !important;
}

.tabbedpane > div {
    display: none;

    font-family: Verdana;
    font-size: 10pt;
    font-weight: bold;
    color: #66cccc;

    border: 2px solid #66cccc;
    border-radius: 2px;
    padding: 5px;

    box-shadow: 0px 0px 5px 5px #66cccc20,
                inset 0px 0px 5px 5px #66cccc20;

    background: linear-gradient(-45deg, #66cccc10 0%, #66cccc20 30%, #66cccc10 100%);
}

.tabbedpane > fieldset {
    width: 100% !important;

    background-color: #66cccc20 !important;
    border: 2px solid #66cccc80 !important;
    border-radius: 5px !important;

    font-family: Verdana !important;
    font-size: 12pt !important;
    color: #66cccc !important;

    padding: 10px !important;
    margin: 0px !important;
}

#disclaimer-pane {
    margin-left: auto;
    margin-right: auto;
    width: 90%;

    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    font-size: 10pt;
    text-align: justify;

    color: #66cccc;

    margin-bottom: 25px;

    border-radius: 5px;
    border: 2px solid #66cccc;
    padding: 15px;

    box-shadow: 0px 0px 5px 5px #66cccc20,
                inset 0px 0px 5px 5px #66cccc20;

    background: linear-gradient(-45deg, #66cccc10 0%, #66cccc20 30%, #66cccc10 100%);
}

.disabled-div {
    filter: grayscale(1.0);
    opacity: 0.5;
    pointer-events: none;
}

/* svg preview */
#svg-preview {
    flex: 1 0 0;
    
    aspect-ratio: 1 / 1;
}

#svg-preview:empty {
    display: none;
}

#svg-preview > svg {
    max-width: 90%;
    max-height: 90%;

    position: relative;

	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);

	filter: invert(76%) sepia(86%) saturate(236%) hue-rotate(123deg) brightness(84%) contrast(90%) blur(0.5px);
}

/* 
#svg-preview > svg path {
    fill: none;
    stroke: black;
    stroke-width: 0.1;
}

#svg-preview > svg circle, #svg-preview > svg path line
{
    fill: none;
    stroke: black;
    stroke-width: 0.1;
}
*/