#kad5_open input {
    position: absolute;
    opacity: 0;
    font-size: 10em;
    top: -5px;
    right: -5px;
    margin: 0;
    cursor: pointer;
    width:0px;
}


.transparent-grid{
  width: 100%;
  height: 400px;
  position: absolute;
  pointer-events: none;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAQElEQVQ4T2N89+7dfwYigKCgIBGqGBgYRw3EGU6jYYgzaIZAsvn//z9ROeX9+/fE5ZRRA3GG02gY4s4pgz7ZAAAnSWvHPkHXaAAAAABJRU5ErkJggg==') repeat top left;
  z-index:1;
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -o-crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}
.transparent-grid.white{
  background:white;
}
.transparent-grid.green{
  background: #5be471;
}
.transparent-grid.grey{
  background: #dfdfdf;
}


.paperPreview{
  padding-top: 50px;
  padding-left: 20px;
  
}

.paperPreview table{
  height: 220px;
}

.m-content{
  background-color: #FFF;
}

#mainArea{
  

}

#svgroot{
  position:relative;
  z-index:2;
  border: 1px solid rgb(0, 0, 0); 
  background-color: #fff;
  visibility: visible; 
  text-align: center;
  vertical-align: text-bottom;
}

#svgroot{

}

#canvas_back{
  position: absolute;
  background-color:#ffffff;
  outline: none;
}
#canvas_grid{
  pointer-events:none;
}

#canvas_wrapper{
  padding-top: 15px;
  padding-left: 0px;
  padding-bottom: 0px;
  padding-right: 0px;
  text-align: center;
  vertical-align: text-bottom;
  width: 920px;
  height: 450px;
}

#svgcontent{
  text-align: left;
}
#rulers {
  position: absolute;
  z-index: 300;
  
}
#rulers > div {
  position: absolute;
  background: #fff;
  z-index: 1;
  overflow: hidden;
  -moz-osx-font-smoothing: none;
  -webkit-font-smoothing: none;
  font-smoothing: none;
}

#rulers #ruler_corner {
  width: 15px;
  height: 15px;
  left: -15px;
  border: solid #eee 1px;
  z-index: 2;
}

#ruler_x {
  height: 15px;
  left: 0px;
  right: 175px;
  border-top: solid #eee 1px;
  border-right: solid #eee 1px;
}

#ruler_x_cursor {
  height: 15px;
  left: 0px;
  border-right: dotted #999 1px;
  position: absolute;
  background: #2f2f2c;
}

#ruler_y {
  width: 15px;
  top: 15px;
  left: -15px;
  bottom: 40px;
  border-left: solid #eee 1px;
  border-bottom: solid #eee 1px;
}

#ruler_y_cursor {
  width: 15px;
  left: 0px;
  border-top: dotted #999 1px;
  position: absolute;
  background: #2f2f2c;
}

#rulers.moved #ruler_corner,
#rulers.moved #ruler_x {
  top: 100px;
}

#rulers.moved #ruler_y {
  top: 116px;
}


#ruler_x canvas:first-child {
  margin-left: 0px;
}

#ruler_x canvas {
  float: left;
}

#ruler_y canvas {
  margin-top: 0px;
}

#ruler_x > div, 
#ruler_y > div {
  overflow: hidden;
}

/* Generic context menu styles */
.contextMenu {
  position: absolute;
  z-index: 99999;
  border: solid 1px rgba(0,0,0,.33);
  background: rgba(255,255,255,.95);
  padding: 5px 0;
  margin: 0px;
  display: none;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
  -moz-box-shadow: 2px 5px 10px rgba(0,0,0,.3);
  -webkit-box-shadow: 2px 5px 10px rgba(0,0,0,.3);
  box-shadow: 2px 5px 10px rgba(0,0,0,.3);
}

.touch .contextMenu {
  border: solid 5px rgba(0,0,0,.7);
  padding: 0;
  margin: 0 0 0 20px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
  -moz-box-shadow: 2px 5px 20px 3px #000;
  -webkit-box-shadow: 2px 5px 20px 3px #000;
  box-shadow: 2px 5px 20px rgba(0,0,0,0.5);
}

.touch .contextMenu:after {
  content: '';
  width: 0;
  height: 0;
  border: solid transparent 10px;
  border-right-color: rgba(0,0,0,.7);
  position: absolute;
  top: 50%;
  left: -25px;
  margin-top: -10px;
  z-index: 1000;
}

.contextMenu LI {
  background-color:transparent;
  list-style: none;
  padding: 0px;
  margin: 0px;
}

.contextMenu .shortcut {
  width: 115px;           
  text-align:right;
  float:right;
}

.touch .contextMenu .shortcut {
  display: none;
}


.touch .shortcut {
  display: none;
}


.contextMenu A {
  -moz-user-select: none; /* Firefox 2+ */
  -ms-user-select: none; /* IE 10+ */
  -webkit-user-select: none;
  user-select: none;
  color: #222;
  text-decoration: none;
  display: block;
  background-position: 6px center;
  background-repeat: no-repeat;
  outline: none;

}

.touch .contextMenu A {
  padding: 0 15px;
  border-bottom: #;
  font-weight: bold;
  border-top: solid 1px #E3E3E3;
  height: 40px;
  line-height: 40px;
  min-width: 200px;
}

.contextMenu LI.hover A {
  background-color: #6D8AB5;
  cursor: default;
}

.contextMenu LI.disabled A {
  color: #999 !important;

}

.touch .contextMenu LI.disabled A {
  display: none;
}

.contextMenu LI.hover.disabled{
  background-color: transparent !important;
}


.contextMenu LI.hover.disabled A {
  background-color: transparent;
}

.contextMenu LI.separator {
  background-color: transparent !important;
  border-top: solid 1px #E3E3E3;
  padding-top: 5px;
  margin-top: 5px;
}

.touch .contextMenu LI.separator {
  border-top: none;
  margin: 0;
  padding: 0;
}

#menu {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: #000;
  z-index: 10;
  color: #fff;
}

.previewLabel {
  border: 1px solid #555;
  width: 10px;
}

.previewLabel-selected {
  border: 2px solid #00F;
  width: 10px;
}


user agent stylesheetul, menu, dir {
    display: block;
    list-style-type: disc;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 40px;
}