body {
    background: #fefefe;
    padding: 0;
    margin: 0;
    color: white;
	user-select: none; 
}

html, body {margin: 0; height: 100%; overflow: hidden}

ul {
    list-style: none;
    padding: 0px;
    margin: 0px;    
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: 5px;
    width: 8px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    width: 8px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

::-webkit-scrollbar-corner {
	background: transparent;
}

#canvas3d {
    /*

    display: none;
    */
    width: 100%;
    height: 100vh;
    background: linear-gradient(to top, #3c3c3c, #444, #444);
    margin: 0;
    padding: 0;

}

#main3d {
    position: relative;
}


#canvas2d {
    width: 100%;
    height: 100vh;
    background: linear-gradient(to top, #444, #555, #444);
    margin: 0;
    padding: 0;
}

#main svg.selection{
	position: absolute;
    top: 0;
    left: 0px;
    pointer-events: none;
    z-index: 100;
}

#main svg.selection .selection{
	fill: #f701;
	stroke: #f705;
	stroke-width: 1;
	stroke-dasharray: 3,3;
}

#panel {
    border: 1px #fff solid;
    top: 5px;
    right: 10px;
    background: #aaaaaaaa;
    padding: 5px 2px 5px 5px;
    border-radius: 5px;
    position: absolute;
    width: 330px;
    overflow-y: scroll;
    overflow-x: visible;
    height: 95vh;
    color: #ccc;
}


#info span {
    display: inline-block;
    border: 1px #ccc5 solid;
    padding: 1px 5px;
    border-radius: 5px;
    width: 70px;
    color: #ccc;
    font-size: 0.7em
}

#objects-2d li {
    font-size: 12px;
    color: #fff;
    cursor: pointer;
}

#objects-2d li.active {
    background: #fff4;
}


/* --------- Drag-drop --------- */
#drag-drop {
    position: absolute;
    z-index: 1000;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: #0005;
    color: #ccc;
    display: none;

}

#drag-drop .inner {

    border: 1px solid #777;
    border-radius: 10px;
    width: 80%;
    height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100;
    text-shadow: 2px 2px 5px #0005;
}

/* --------- Drag-drop --------- */
/* --------- Panels2 --------- */

#panels2 {
    position: absolute;
    top: 5px;
    right: 350px;
}


/* --------- Panels2 --------- */
/* --------- Scan modes --------- */
#scan-modes{
	display: none;
	width: 200px;
}

#scan-modes .value{
	width: 40px;
	color:white;
	display: inline-block;
}
#scan-modes .param-list span.name {width: 66px;}
#scan-modes .heading { font-size: 12px; }


/* --------- Scan modes --------- */
/* --------- VIEWS --------- */

.views-grid {
    display: flex; /* establish flex container */
    flex-wrap: wrap; /* enable flex items to wrap */
    justify-content: space-around;
    width: 90px;

}

.views-grid .cell {
    flex: 0 0 30%; /* don't grow, don't shrink, width */
    height: 27px;
    margin: 1px;
    background-color: #999;
    text-align: center;
    vertical-align: middle;
    line-height: 27px;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    min-width: 0;
}

.views-grid .cell:nth-child(3), .views-grid .cell:nth-child(7) {
    opacity: 0;
}

/* --------- VIEWS --------- */
/* --------- PANELS --------- */
#top-panel {
    position: absolute;
    top: 3px;
    left: 3px;
}

.panel {
    background: #333e;
    border-radius: 4px;
    position: relative;
    padding: 10px 5px 5px 5px;
    margin: 2px;

}

.panel label {
    position: absolute;
    top: 1px;
    left: 10px;
    color: #ccc;
    text-shadow: 1px 1px #000c;
    font-size: 10px;
}


/* --------- PANELS --------- */
/* --------- MATERIALS --------- */
#materials {
    width: 80%;
    height: 80%;
    position: absolute;
    overflow: scroll;
    top: 5%;
}

#materials .tags .tag {
    display: inline-block;
    border: 1px #ccc solid;
    background: #aaaaaaaa;
    padding: 5px;
    border-radius: 5px;
    width: 70px;
}

#materials .materials .material {
    display: inline-block;
    border: 1px #ccc solid;
    background: #aaaaaaaa;
    padding: 5px;
    border-radius: 5px;
    width: 40%;
}

#materials .materials .material h2 {
    margin: 0px 5px;
    font-size: 1.2em;
    font-weight: bold;
}


#materials .materials .material .tag {
    display: inline-block;
    border: 1px #ccc solid;
    background: #aaaaaaaa;
    padding: 5px;
    border-radius: 5px;
    width: 70px;
    font-size: 0.7em;
}

/* --------- MATERIALS --------- */
/* --------- PARAMETERS --------- */

ul.param-list {
    margin: 0;
    padding: 0;
    clear: both;
}

ul.param-list {
    margin-top: 4px;
}

button.delete-preset {
	background: #f0077;
	float: right;
	min-width: 10px;
	padding: 5px;
	
	
}

input.preset-name {
    width: 80%;
    font-size: 1.2em;
    background: none;
    border: none;
    padding-left: 0;
    margin-top: 5px;
}


.param-list span.name {
    padding-right: 20px;
    display: inline-block;
    font-size: 12px;
    width: 50%;
    color: #ccc;
}

.param-list .stat {
    width: 25px;
    display: inline-block;
}

.param-list input {
    vertical-align: top;
    margin-top: 5px;
    width: 20%;
}

.param-list .delimiter {
    width: 200px;
    display: block;
    border: 1px solid;
    margin-bottom: 10px;
    margin-top: 10px;
    border: none;
    border-bottom: 1px solid #ccc7;
    font-weight: bold;
}

.param-list h2 {
    color: #ccc;
    font-size: 1em;
    margin: 5px 0px 4px 5px;
}


.presets{
    border-radius: 8px;
    box-shadow: 1px 1px 8px #0006;
    padding: 5px;
}

.presets .list{
    overflow: auto;
}

.presets .list li{
	float: left;
	padding: 4px;
    background: #6b6b6a;
    border-radius: 5px;
    margin: 2px;
    cursor: pointer;
}
.presets.frame li.active{
	background: #027192
}


.presets .list .pk{ color:#ccc; font-size:0.8em;}


.presets .filter {
	width: 100%;
}

.presets .filter {
	width: 100%;
}

.parameters .share{
	cursor:pointer; 
    text-align: right;
    width: 100%;
}

/* --------- PARAMETERS --------- */
/* --------- CLIPING --------- */

#panel-clip .clp {
    width: 20px;
    min-width: 20px;
    padding: 10px;
    height: 20px;
    margin: 0px;
}

#panel-clip {
    color: #ccc;
}

#panel-clip .clp.neg {
    border-radius: 0px 4px 4px 0px;
    border-left: 1px solid #0002;
}

#panel-clip .clp.pos {
    border-radius: 4px 0px 0px 4px;
    border-right: 1px solid #aaa5;
}


#panel-clip input {
    width: 190px;
}


/* --------- CLIPING --------- */


/* --------- JOBS --------- */
#jobs {
    /*	display: none;*/
    position: absolute;
    bottom: 25px;
    right: 360px;
    height: 180px;
    width: 200px;
    overflow: scroll;
    border-radius: 8px;
    box-shadow: 1px 1px 8px #0006;
    padding: 5px;
    font-size: 0.7em    
}

#jobs h1 {
    margin: 0px;
}

#job-list span {
    width: 60px;
    font-size: 0.8em;
    text-align: right;
    display: inline-block;
}

#job-list .id {
    width: 40px;
    font-size: 0.8em;
}

#job-list .id {
    width: 30px;
    font-size: 0.8em;
    text-align: right;
    display: inline-block;
}

/* --------- JOBS --------- */
/* --------- INSPECTOR --------- */

#inspector {
    position: absolute;
    z-index: 100;
    top: 155px;
    left: 35px;
    font-size: 12px;
    cursor: pointer;
}

#inspector h2 {
    margin: 0px 5px;
    font-size: 1em;
    cursor: pointer;
}

#inspector li {
    cursor: pointer;
}

#inspector ul {
    margin: 0px 0px 0px 10px;
    padding: 0px;

}

#inspector .icon {
    font-size: 12px;
}

#inspector .icons {
    display: inline-block;
    margin-left: 10px;
    vertical-align: top;
}

#inspector .selected {
    color: #F9D423;
}

/* --------- INSPECTOR --------- */

/* --------- HINT --------- */
#hint {
	position:absolute;
	z-index: 10;
	right: 350px;
	bottom: 10px;
	width: 250px;
	height: 200px;
    color: #fff;
    background: #333e;
    border-radius: 5px;
    padding: 5px;
}
#hint img{
	border: 1px #0004 solid;
}

#hint h1 {color: #fff7; margin: 0px; font-size: 20px;}
.hint {display: none;}

/* --------- HINT --------- */

/* --------- USER --------- */
.user.panel{
	position: absolute;
    top: 3px;
    z-index: 10;
    left: 480px;
    width: 300px;
    color: #fff;
    overflow: hidden;
}

.user.panel .logout{ display:none; }
.user.panel .logout, .user.panel .login{ cursor: pointer; }

#login-form, #login-form table, #login-form a {
	color:#fff;
}

#username {float:left; margin: 0 5px;}

/* --------- USER --------- */
/* --------- DIALOG --------- */
.dialog {

    display: none;
    position: absolute;
    min-width: 30%;
    width: 30%;
    min-height: 20%;
    top: 20%;
    margin: 0px auto;
    z-index: 2000;
    background: #333e;
    border-radius: 8px;
    box-shadow: 1px 1px 8px #0006;
    padding: 20px 40px;
    color: white;

    margin: 0px auto;
    left: 0;
    right: 0;
}

.dialog .buttons {
    position: absolute;
    bottom: 5px;
    right: 10px;

}

.dialog::after {
    content: "";
    display: block;
    position: absolute;
    left: 1000px;
    top: 1000px;
    height: 3000px;
    width: 3000px;
    transform: translate(-50%, -50%);
    z-index: -100;
    background-color: #0004;
}

.dialog textarea{
    width: 431px;
    height: 152px;
}

/* --------- DIALOG --------- */
/* --------- BOTTOM DIALOG --------- */
.bt-dialog {
	display: none;
	position: absolute;
    bottom: 10px;
    left: 10px;
    background: #0005;
    border-radius: 5px;
    padding: 10px 5px;
    width: 360px;
}
/* PointsSialog */
#points-dialog select {
	height: 250px;
	width: 150px;
}
#points-dialog textarea {
	height: 250px;
	width: 200px;
}


/* --------- BOTTOM DIALOG --------- */
/* --------- FRAME --------- */

.frame {
    border-radius: 4px;
    border: 1px solid #fff2;
    position: relative;
    padding: 0.2em;
    margin: 2px;
    margin-top: 0.2em;
    color: #ccc;
    font-size: 0.8em;
}


.frame .value {
    color: #fff;
}


.frame .label, .frame label {
    position: absolute;
    top: -0.7em;
    left: 5px;
    position: absolute;
    color: #ccc;
    text-shadow: 1px 1px #000c;
    font: 400 0.7em Arial;
}

/* --------- FRAME --------- */
/* --------- Buttons --------- */


input, button {
    background: #6b6b6a;
    border: 0px;
    border-radius: 4px;
    color: white;
    padding: 10px 25px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    border-top: 0px solid rgba(255, 255, 255, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    vertical-align: middle;
}


div.input {
    vertical-align: middle;
    display: inline-block;
    position: relative;
}

div.input input {
    text-align: right;
}

div.input .label {
	user-select: none; 
    position: absolute;
    left: 2px;
    top: -9px;
    font-size: 9px;
    color: #fffa;
    font-family: sans-serif;
}


input {
    padding: 2px 10px;
    width: 70px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


button {
    margin: 5px;
    height: 25px;
    min-width: 45px;
    line-height: 0em;
    padding: 4px 20px;
}

input:focus, button:focus {
    outline: 0;
}

button:active {
    border: 0px;
    border-bottom: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);

}

button:disabled {
    color: #aaa;
}

button.big {
    display: block;
    height: 60px;
    width: calc(100% - 10px);
}

button.half {
    display: block;
    height: 60px;
    width: 45%;
}

button.highlight,
button.active,
pass {
    background: #027192;
}

button.toggle{ padding: 5px;}

.led {
    border-top: #fff3 1px solid;
    border-left: #fff2 1px solid;
    height: 59px;
    width: 20px;
    margin: -11px -30px 0px 11px;
    vertical-align: middle;
    border-radius: 0 4px 4px 0;
    background: #6b6b6a;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.led.active {
    background: #027192;
}

/* --------- Preview --------- */

/* --------- 2D --------- */
#main2d {
    position: relative;
    display: none;
}

#range2d {
    position: absolute;
    -webkit-appearance: slider-vertical;
    height: calc(100% - 100px);
    width: 30px;
    top: 60px;
    left:10px;
}

#animate-interval {
    width: 80%;
}

#range2d-laser {
    width: calc(100% - 380px);
    position: absolute;
    left: 10px;
    bottom:10px;
}

#panel2d {
    display: none;
}

/* --------- 2D --------- */

/* --------- INFO Messages --------- */
.info-message {
    bottom: 10px;
    background: #333e;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 2px 2px 5px #0005;
    padding: 20px 20px 20px 50px;
    font-size: 0.7em;
    color: #eee;
}

/* --------- INFO Messages --------- */

/* --------- INFO Messages --------- */
#statusbar {
    position: absolute;
    bottom: 10px;
    background: #333e;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 2px 2px 5px #0005;
    padding: 20px 20px 20px 50px;
    font-size: 0.7em;
    color: #eee;
    display: none;
    z-index: 100;
}

#statusbar.info {
    background: #363e;
}

#statusbar.warning {
    background: #663e;
}

#statusbar.error {
    background: #633e;
}

/* --------- INFO Messages --------- */
/* --------- Commands --------- */

#commands-search {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 200px;
    height: 300px;
    background: #333e;
    color: white;
}

#commands-search ul {
    height: 250px;
    overflow: auto;
}

#commands-search input {
    width: 100%;

}

#commands-search ul li {
    padding: 3px;
    cursor: pointer;
}

#commands-search ul li:hover {
    background: #fff3;
}

#commands-search ul li.active {
	background: #027192;
	border-radius: 2px;
}


/* --------- Commands --------- */


/* --------- Ask value dialog --------- */
#ask-value {display:none;}
/* --------- Ask value dialog --------- */


/* --------- Hoodie --------- */

#hoodie-input
{
	position:absolute;
	bottom:10px;
	margin-left: auto; 
	margin-right: auto; 
	width: 100px; 	
	left: 0;
	right: 0;
	text-align: center;
	display: none;
}

#hoodie-input input{
	width: 100%;
}

/* --------- Hoodie --------- */
/* --------- Ruller --------- */
#ruller-x {
    position: absolute;
    width: 100%;
    height: 20px;
    background: #0005;
    bottom: 0px;
    left:0px;
}

#ruller-y {
	position: absolute;
    height: 90vh;
    bottom: 0px;
    left: 0px;
    width: 20px;
    background: #0005;
    border-radius: 1px 30px 0px 0px;
}

/* --------- Ruller --------- */
/* --------- Spinner --------- */
#spinner{
	position: absolute;
    bottom: 90px;
    background: #0005;
    height: 80px;
    width: 200px;
    background-image: url(/static/inc/img/spinner.gif);
    left: 30px;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 42px;
    padding-left: 70px;
    border-radius: 5px;
	display: flex;
    justify-content: flex-start;
    align-items: center;
	display:none;
}
#spinner h1{
	font-size: 1em;
}


/* --------- Spinner --------- */

/* --------- Supports buttons --------- */
.supports-selection.column-supports-button,
.supports-selection.block-supports-button {display: none;}
/* --------- Supports buttons --------- */

/* --------- Intro --------- */
#intro{
 	position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 561px;
    background: #0006;
    box-shadow: 3px 3px 5px #0005;
}

#intro img.intro{
	float:left;
	margin-right: 5px;
	opacity:80%;
	width: inherit;
}

#intro .content{
	padding: 5px;
	overflow: hidden;
}
#intro img.logo{
    width: 170px;
    display: block;	
}

#intro .content h1{ font-size: 16px;}

#intro .content ul{
	padding-left: 10px;
	font-size: 0.8em;
}
#intro .copyright{
	font-size: 0.8em;
    font-weight: bold;
    text-align: right;    
}

/* --------- Intro --------- */
/* --------- Nesting --------- */
#nesting-result-svg svg{ width:400px; height:400px; background: #0008;}
#nesting-result-svg {
	margin-left: auto;
	margin-right: auto;
	left: 0;
	right: 0;
	text-align: center;
}
/* --------- Nesting --------- */
/* --------- Spinner --------- */

.spinner {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spinner 5s linear infinite;
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#jobs .spinner{

  border: 3px solid #f3f3f3; /* Light grey */
  border-top: 3px solid #3498db; /* Blue */
  width: 4px;
  height: 4px;


}
/* --------- Spinner --------- */

/* --- COLOR LEGEND --- */
#color-legend  .label {
    all: unset;
    display: inline-block;
    min-width: 80px;
}
/* --- COLOR LEGEND --- */

#text3DField {
    width: 40%;
}

#text3DSize{
    width: 15%;

}

#text3DHeight{
    width: 15%;

}

/* --- Local-Slicer --- */
div.local-slicer {
    position: absolute;
    width: 300px;
    bottom: 5px;
    left: 0;
    right: 0;
    margin: 5 auto;
    padding: 0 5px;
}

div.local-slicer h1 {
    font-size: 1em;
    margin: 0px;
}

div.local-slicer .inner {
    font-size: .8em;
    color: #CCC;
}
/* --- Local-Slicer --- */

