
#board {
	position: relative;
	height: 100%;
	width: 100%;
}

#board.desk-busy #board-top .mdi
{	
	/*background-color: #eee;*/
}

#board.desk-busy #board-zoom {
	display: none;
}

#board.desk-empty #board-zoom,
#board.desk-empty .draw {
	display: none;
}

#board-top {
    position: absolute;
    top: 0;
    left: 0;
    height: 55px;
    width: 100%;
    z-index: 4;
    padding-top: 2px;
}


#board-top .act{
	width: 40px;
	position: relative;
	text-align: center;
}

#board-top-left{
	float: left;
	height: 50px;
}
#board-top-left .act{
	float: left;
	margin: 0;
}

#board-top-right{
	float: right;
	height: 50px;
}
#board-top-right .act{
	float: right;
	margin: 0;
}

#board-top .act .knob{
	position: relative;
	font-size: 26px;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	border-radius: 5px;
	border: 1px solid #fff;
	cursor: pointer;
	color: #666;
  	stroke: #666;
  	fill: #666;
  	stroke-width: 1;
 }

#board-top .act.popup .knob,
#board-top .act.press .knob{
	background-color: #4f8cf1;
	border: 1px solid #4f8cf1;
	color: #fff;
	stroke: #fff;
  	fill: #fff;
}

#board-top .act.down .knob,
#board-top .knob:hover{
	background-color: #4f8cf1;
	border: 1px solid #4f8cf1;
	color: #fff;
	stroke: #fff;
  	fill: #fff;
}

#board-figure .knob [kind]{
	display: none;
}

#board-figure[kind='rectangle'] .knob [kind='rectangle'],
#board-figure[kind='rounded'] .knob [kind='rounded'],
#board-figure[kind='circle'] .knob [kind='circle'],
#board-figure[kind='line'] .knob [kind='line'],
#board-figure[kind='arrow'] .knob [kind='arrow']{
	display: block;
}



#board-top .act .list{
	display: none;
	position: absolute;
	top: 50px;
	left: 0;
	border: 1px solid silver;
    border-radius: 5px;
    min-width: 40px;
   	background-color: white;
	cursor: pointer;
	padding: 2px 0;
}
#board-top .act.popup .list,
#board-top .act.popup .hold{
	display: block;
}

#board-top .act.popup .list > div {
	padding: 6px 9px;
	white-space: nowrap;
	text-align: left;
	cursor: pointer;
}
#board-top .act.popup .list > div:hover {
   background-color: #eee;
}


#board-desk{
	display: block;
	padding: 0;
	width: 100%;
	position: absolute;
	top: 55px;
	bottom: 0;
	border: 1px solid silver;
	overflow-x: auto;
	overflow-y: auto;
	text-align: center;
	background-color: #f4f4f4;
	
}

#board-desk iframe {
	position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    border: 0;
}

#board-desk > div{
	width: 100%;
	height: 100%;
	position: relative;
	top: 0;
	left: 0;
	padding: 0;
	margin: 0 auto 0 auto;
	border: 0;
}

#board-desk > div.show{
	display: block;
}

#board-desk > div > .back{
	z-index: 0;
	position: absolute;
	top: 0;
	left: 0;
	cursor: pointer;
	border: none;
	overflow-y: hidden;

	width: 100%;
	height: auto;
	
    /*background-position: 50% 0;
    background-size: cover;*/
}
#board-desk > div > .main{
	z-index: 1;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	cursor: crosshair;
	border: 1px solid silver;
}
#board-desk > div > .draw{
	z-index: 2;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	cursor: crosshair;
	border: 1px solid silver;
	overflow-x: hidden;
}
#board-desk.select  > div > .draw {
 	cursor: default;
}

#board-desk > div > .draw{
	background-color: white;
}
#board-desk.has_back > div > .draw{
	background-color: unset;
}
#board-desk > div > img{
	display: none;
}
#board-desk.has_back > div > img{
	display: block;
}


#board-fill .hold{
	white-space: nowrap;
	display: none;
	position: absolute;
	top: 50px;
	left: 0;
	border: 1px solid silver;
    border-radius: 5px;
    min-width: 40px;
   	background-color: white;
	cursor: pointer;
	padding: 5px;
	font-size: 0;
}
#board-fill-rect{
	display: inline-block;
	/*width: 157px;
	height: 135px;*/
	border-radius: 3px;
	border: 1px solid silver;
}
#board-fill-line{
	display: inline-block;
	width: 12px;
	height: 135px;
	border-radius: 3px;
	border: 1px solid silver;
	margin-left: 5px;
}



#board-figure.act .knob > div
{
	border:2px solid #666;
	width: 18px;
	height: 18px;
	display: inline-grid;
	background-color: #fff;
}

#board-fill.act .knob > div
{
	background-color: black; 
	width: 18px;height: 
	18px; display: 
	inline-grid;
}
#board-fill.act.popup .knob
{
	background-color: #fff; 
}


#board-upload.act{
	width: 100px;
}
#board-upload.act .knob{
	font-size: 15px;
	width: 100%;
	padding-top: 8px;
	color: white;
	background-color: #4f8cf1;
	border-color: #4f8cf1;
}



#board-brush .list{
	width: 114px;
}
#board-brush .list span.strong{
	position: relative;
	width: 50px;
	left: 0;
	display: inline-block;
}
#board-brush .list span.blur{
	position: relative;
	width: 50px;
	right: 0;
	display: inline-block;
}



#board-zoom{
	width: 40px;
	height: 300px;
	position: absolute;
	top: 75px;
	right: 25px;
	z-index: 4;
}

#board-zoom-inc{
	width: 40px;
	height: 40px;
	font-size: 16px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	border: 1px solid #e6e6e6;
	background-color: #fff;
	text-align: center;
	cursor: pointer;
}
#board-zoom-inc i{
	font-size: 25px;
	color: #666;
}

#board-zoom-dec{
	width: 40px;
	height: 40px;
	bottom: 0;
	left: 0;
	z-index: 1;
	border: 1px solid #e6e6e6;
	background-color: #fff;
	text-align: center;
	position: absolute;
	cursor: pointer;
}
#board-zoom-dec i{
	font-size: 25px;
	color: #666;
}

#board-zoom-rail{
	width: 6px;
	top: 40px;
	left: 17px;
	z-index: 0;
	border: 1px solid #e6e6e6;
	background-color: #fff;
	position: absolute;
}

#board-zoom-base{
    position: absolute;
    width: 40px;
    top: 40px; 
}

#board-zoom-thumb{
	z-index: 1;
	width: 40px;
	height: 10px;
	position: absolute;
	left: 0;
	top:0;
	border: 1px solid #e6e6e6;
	font-size: 12px;
	background-color: #fff;
	text-align: center;
	cursor: pointer;
}
#board-zoom-thumb i{
	position: relative;
	top: -10px;
	font-size: 20px;
	color: #666;
}



#board-figure .list .pic{
	width: 25px;
	height: 25px;
	display: inline-block;
	padding-top: 1px 0 0 9px;
	vertical-align: top;
}
#board-figure .list .txt{
	display: inline-block;
	vertical-align: top;
}



#board-eraser .pic{
	text-align: center;
}


.act .list .sel {
	background-color: #e7e7e7;
}

#board-brush.act .list .sel {
	background: none;
	border: 1px solid #e7e7e7;
	border-radius: 3px;
}


#board-upload {
	cursor: pointer;
}
#board-upload .knob{
	cursor: pointer;
}
#board-upload input{
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	font-size: 0;
}


#board-view{
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;	
  /*overflow-y: auto;*/
  overflow: hidden;

  background-color: #fff;
}
#board-view::-webkit-scrollbar {
  width: 2px;
}
#board-view::-webkit-scrollbar-track {
}
#board-view::-webkit-scrollbar-thumb {
  background-color: #bbbbbb;
  border-radius: 2px;
}    

#board-view > div{
    width: 100%;
    position: relative;
}

#board-view-sign{
	position: absolute;
	top: 0;
	left: 0;
	height: 20px;
	font-size: 16px;
	color: #000;
	/*display: inline-block;*/ 	display: none;

	background-color: #e6e6e6;
	opacity: 0.75;
	padding: 1px 5px 0px 4px;
	border-radius: 0 0 8px 0;
	z-index: 2;
}
#board-view-back {
	position: absolute;
	top: 0;
	left: 0;
	border: none;
	overflow-y: hidden;

	background-color: #fff; 

	width: 100%;

    background-position: 50% 0;
    background-size: cover;
	z-index: 0;
}
                                     
#board-view-pict {
	position: absolute;
	top: 0;
	left: 0;
	cursor: pointer;
	width: 100%;
	z-index: 1;
}

#workplace.board-view #board-view{
	display: block;
}



#board-hand {
	width: 100%;
	top: 55px;
	bottom: 0;
	position: absolute;
	cursor: all-scroll;
}
body[brd-figure=move] #board-hand {
	z-index: 3;
}


#board *{
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}


#board-desk .draw-item {
    transition: stroke-width 0.3s ease-in;
    /*pointer-events:all;*/
}
#board-desk .draw-item:hover,
#board-desk .draw-item.sel {
    transition: stroke-width 0.3s ease-out;
}


#board-desk .draw-text-base {
	position: absolute;
	border: none;
	margin: 0;
	padding: 0;
}

#board-desk .draw-text {
	position: relative;
	top: 1px;
	left: 1px;
	background-color: transparent;
	padding: 0;
	line-height: 80%;
	outline: none;
	/*outline: 1px solid silver;*/
	border: none;
	resize: none;
	overflow: hidden;
}

#board-desk .draw-text-spot {
	position: absolute;
	background-color: white;
	border: 1px solid black;
	border-radius: 7px;
	cursor: pointer;
	display: block;
	top: -10px;
	left: -10px;
	width: 12px;
	height: 12px;
}



body[brd-figure=select] #board-desk .draw{
	cursor: default;
}
/*body[brd-figure=select] #board-desk .draw .draw-item{
	cursor: pointer;
}*/
body[brd-figure=select] #board-desk .draw .draw-item:hover{
    stroke: #ffca37 !important;
    fill: #ffca37 !important;
    border-color: #ffca37 !important;
    opacity: 0.65 !important;
    transition: all 0.4s ease-in;	
	cursor: pointer;
}

body[brd-figure=select] #board-desk .draw .draw-item.sel,
body[brd-figure=select] #board-desk .draw .draw-recalc.sel .draw-item{
    /*stroke: #d79f02 !important;
    border-color: #d79f02 !important;*/
    /*opacity: 0.65 !important;*/
    transition: stroke 0.4s ease-in, border-color 0.4s ease-in;	
}


/*body[brd-figure=eraser] #board-desk .draw .draw-item{
	cursor: pointer;
}*/
body[brd-figure=eraser] #board-desk .draw svg .draw-item:hover{
    stroke: red !important;
    fill: red !important;
    background-color: red !important;
    opacity: 0.65 !important;
    transition: stroke 0.4s ease-in, border-color 0.4s ease-in;	
}



#board-desk .svg-sel .rect{
	/*stroke: black;
	stroke-width: 1px; 
	fill: white;
	fill-opacity: 0.7;*/
	
	stroke-width: 0; 
	fill: orange;
	fill-opacity: 0.8;
}
#board-desk .svg-sel .area{
	stroke-width: 0; 
	fill: orange;
	fill-opacity: 0.2;
}
#board-desk .svg-sel .line{
	stroke-width: 0; 
	fill: orange;
	fill-opacity: 0.8;
}

#board-desk .draw.edit-text svg rect.area{
	fill: transparent;
	stroke: transparent;
}



#board-desk svg text{
	letter-spacing: 0;
}

#board-desk svg .draw-item {
	/*pointer-events: none;
	cursor: default;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;	*/
}
#board-desk svg .draw-item.sel {
	pointer-events: all;
	/*stroke: red;
	fill: red;*/
}


#board-desk .draw .draw-item-text{
	position: absolute; 
	border: 0;
	padding: 0;
	margin: 0;
	cursor: all-cross;
	line-height: 110%;
	background-color: transparent;
	color: transparent;
	caret-color: blue;
	letter-spacing: 0;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
}







#board-sign{
	position: absolute;
	top: 56px;
	left: 4px;
	height: 26px;
	font-size: 17px;
	color: #000;
	display: inline-block;
	background-color: #e6e6e6;
	/*opacity: 0.8;*/
	padding: 0 10px 23px 10px;
	border-radius: 0 0 5px 5px;
	z-index: 5;
	cursor: pointer;
}

#board-sign.single {
	cursor: default;
}

#board-sign.popup {
	border-radius: 0;
}
#board-sign i.mdi.mdi-chevron-down{
	display: inline;
}
#board-sign i.mdi.mdi-chevron-up{
	display: none;
}
#board-sign.popup i.mdi.mdi-chevron-down{
	display: none;
}
#board-sign.popup i.mdi.mdi-chevron-up{
	display: inline;
}
#board-sign.popup .leafs{
	display: block;
}

#board-sign.single i.mdi,
#board-sign.single .leafs{
	display: none;
}




#board-sign .leafs{
	position: absolute;
    top: 26px;
    left: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 3;
    width: 100%;	
	display: none;
	border: none;
	background-color: #e6e6e6;
	padding-top: 8px;
	border-radius: 0 0 5px 5px;
}
#board-sign .leafs > div{
	text-align: center;
	padding: 1px 0 1px 3px;
}
#board-sign .leafs > div:hover,
#board-sign .leafs > div.sel{
	background-color: silver;
	color: white;
}


#board-load-save{
	position: absolute;
  width: 0;
  height: 2px;
  background-color: #208cf1;
  top: 53px;
  
    		transition: width 3s ease;
    		transition-timing-function: ease;
    		-webkit-transition: 3s ease;
    		-webkit-transition-timing-function: ease;
    		  
}
#board-load-draw{
	position: absolute;
    width: 0;
    height: 1px;
    background-color: #208cf1;
    top: 53px;
}
#board-load-back{
	position: absolute;
    width: 0;
    height: 1px;
    background-color: #208cf1;
    top: 54px;
}
