body {
	background-image: url("../img/grid.png");
	background-position: 0 9px;
	font-family: sans;
}

.rt {float:right;}
.ct {text-align:center;}
.ptr {cursor:pointer;}

#mask {
	background-color: #fff;
	height: 100%;
	width: 100%;
	opacity: 0.25;
	position: fixed;
	left: 0;
	top: 0;
}

#sel, #dot {
	display: none;
	position: absolute;
	top:0;
	left: 0;
	z-index: 10; /* should be below #draw but above #panel */

	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
}
#panel {
	margin: 1px;
	padding: 0 23px 23px 0;
	position: absolute;
	top: 55px;
	left: 23px;
}
#draw {
	border: 1px solid #999;
	box-shadow: 0 0 0 100vmax rgba(128,128,128,0.1);
	margin: 1px;
}
#divDraw {
	position: absolute;;
	top: 54px;
	left: 22px;
	z-index: 8;
}

#map {
	display: none;
	position: fixed;
	bottom: 42px;
}


#tools, #status {
	background-color: #dde;
	border-top: 2px ridge #999;
	border-bottom: 2px ridge #999;
	position: fixed;
	left: 0px;
	width: 100%;
	z-index: 99;
}
#tools {
	background: linear-gradient(#bbb, #ddd, #bbb);
	height: 27px;
	top: 0;
}
#status {
	background: linear-gradient(#ddd, #f4f4f4, #ddd);
	bottom: 0;
}

#load {display:none;}
#tools #mouse {
	position: absolute;
	bottom: 3px;
	right: 8px;
}

#tools div {
	display: inline-block;
}
#tools button:first-child {margin-left:5px;}
#tools button {
	margin: 3px 0 2px;
	height: 24px;
	min-width: 24px;
	vertical-align: middle;
}
#tools .btn, #edit .btn {
	background-color: #f4f4f4;
	border: 1px solid #888;
	box-shadow: 0 0 1px #f8f8f8;
	border-radius: 3px;
	cursor: pointer;
	height: 21px;
	margin: 2px 0 0;
	text-align: center;
	vertical-align: middle;
	width: 21px;
}
#tools .btn .fa, #edit .btn .fa {vertical-align: middle;}

div.dd {
	font-size: 0;
	padding: 0 1px;
	width: unset !important;
}
div.dd div {
	background-color: currentColor;
	border: 1px solid #000;
	border-radius: 3px;
	box-shadow: inset -2px -2px 8px #999;
	display: inline-block;
	height: 17px;
	vertical-align: middle;
	width: 17px;
}
#frmEdit div.dd div {box-shadow:none;}

div.dd span {
	color: #000 !important;
	display: inline-block;
	font-size: 15px;
	height: 21px;
	padding: 0 3px 0 4px;
	vertical-align: middle;
}

/*
#tools button.btn:active {
	background-color: #e4e4e4;
	border-style: inset;
	outline: 0;
	padding: 0 7px 0 9px;
}
#tools button.btn::-moz-focus-inner {border:0;}
*/
#tools div.btn:active, #edit div.btn:active {
	background-color: #feb;
	border: 1px inset #000;
	outline: 0;
}
#tools div.btn:active img,
#edit div.btn:active img {
	margin-left: 1px;
}
#tools img {vertical-align:middle;}

#tools div.dis {background-color:#ddd;}

/*------------------------------------*/
.drop {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}
.drop li {
	cursor: pointer;
	float: left;
	position: relative;
}
.drop > li:first-child {border-left: 1px solid #999;}
.drop a {
	background: linear-gradient(#ccc, #f4f4f4, #ccc);
	border-right: 1px solid #999;
	display: block;
	line-height: 28px;
	padding: 0 16px;
	color: #000;
	text-decoration: none;
	text-shadow: 1px 1px #fff;
}
.drop a:hover {
	color: #fff;
	text-decoration: none;
	text-shadow: none;
}

.drop a p {
	display: inline-block;
	margin: 0;
	position: absolute;
	right: 16px;
}

/* DROPDOWN */
.drop ul {
	border: 1px solid #666;
	//background: rgba(255,255,255,0);
	box-shadow: 3px 3px 12px #444;
	list-style: none;
	margin-left: 2px;
	padding: 0;
	position: absolute;
	left: -9999px;
	text-shadow: none;
}
.drop ul li {
	background-color: #fff;
	color: #000;
	float: none;
}
.drop ul a {
	background: #ccc;
	text-shadow: none;
	white-space: nowrap;
	width: 150px;
}
.drop ul hr {margin:0;}
.drop li:hover ul a.dis {background-color:#ccc; color:#999;}
.drop li:hover ul {left: 0;}
.drop li:hover a {
	color: #fff;
	background: linear-gradient(#666, #aaa, #666); 
	text-shadow: none;
}
.drop li:hover ul a {
	color: #000;
	background: #ccc;
	text-decoration: none;
}
.drop li:hover ul li a:hover {
	color: #fff;
//	background: linear-gradient(#999, #666, #999); 
	background-color: #777;
}
.drop li:hover ul li a.dis:hover {
	background-color:#ccc;
	color:#999;
	cursor:default;
}
/*------------------------------------*/


#status p {
	display: inline-block;
	margin: 1px 5px;
}

#opts {
	border-left: 2px ridge #999;
	height: 100%;
	position: absolute;
	right: 0;
	top: 0;
	width: 120px;
}
#opts i {
	color: #999;
	display: inline-block;
	font-style: normal;
	text-align: center;
	vertical-align: middle;
	width: 16px;
}
#opts i:first-child {
	color: #333;
	width: 64px;
}

#dot1, #dot2 {
	display: none;
	pointer-events: none;
	position: absolute;
	z-index: 999;
}

.fadeIn {  
	animation-play-state: running;
	animation: fadeIn 500ms linear 0s 1 normal forwards;
}
.fadeOut {
	animation-play-state: running;
	animation: fadeOut 500ms linear 0s 1 normal forwards;
}
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes fadeOut { from {opacity: 1;} to {opacity: 0;} }


#edit {
	background-color: #fff;
	border: 3px ridge #999;
	box-shadow: 8px 8px 50px #000;
	display: none;
	padding-bottom: 40px;
	position: fixed;
	top: 5%;
	left: calc(50% - 160px);
	min-height: 140px;
	min-width: 300px;
	z-index: 998;
}

#edit > div:first-child {
	background-color: #999;
	border-bottom: 2px ridge #000;
	color: #fff;
	font-weight: bold;
	margin: 0;
	padding: 0 0 0 5px;
}
#edit > div:first-child p {
	background-color: #666;
	border-left: 2px ridge #000;
	color: #fff;
	cursor: pointer;
	float: right;
	margin: 0;
	padding: 0 4px;
}
#edit > div:last-child {
	height: calc(100% - 30px);
	margin: 0;
	overflow: auto;
	padding: 5px;
}
#edit form > div {margin-bottom:1em;}
#edit form > div:nth-last-child(2) {margin-bottom:0;}
#edit input[type=submit] {
	bottom: 5px;
	cursor: pointer;
	display: block;
	margin: 0 calc(5% - 3px);
	position: absolute;
	width: 90%;
}
#edit label:not(.tb) {
	display: inline-block;
	padding-right: 8px;
	text-align: right;
	width: 120px;
}

#edit .desc {
	color: #00f;
	font-size: 70%;
	margin: 16px 0 5px;
	text-align: justify;

}

.coord {text-align:center; width:20px;}

input.tb[type="radio"]{display:none;}
input.tb[type="radio"] + label {
	background-color: #f4f4f4;
	border: 1px solid #666;
	border-radius: 3px;
	box-shadow: 0 0 1px #f8f8f8;
	cursor: pointer;
	display:inline-block;
	height: 21px;
	margin: 2px 3px 0;
	padding: 0;
	text-align: center;
	vertical-align: middle;
	width: 21px;
}
input.tb[type="radio"] + label i {margin-top:2px;}

input.tb[type="radio"]:checked + label
{
	background-color: #feb;
	border: 1px inset #ddd;
	box-shadow: 1px 1px 1px #aaa inset;
	display:inline-block;
	height: 21px;
	padding: 0;
	width: 21px;
}

label.l1 {background:url('../img/line1.png');}
label.l3 {background:url('../img/line3.png');}
label.l5 {background:url('../img/line5.png');}
label.l7 {background:url('../img/line7.png');}
label.l9 {background:url('../img/line9.png');}

label.c0 {color:#000 !important;}
label.c1 {color:#888 !important;}
