$minus-img: '../img/designer/minus.png';
$plus-img: '../img/designer/plus.png';
$top-panel-img: '../img/designer/top_panel.png';
$small-tab-img: '../img/designer/small_tab.png';
$frams1-img: '../img/designer/1.png';
$frams2-img: '../img/designer/2.png';
$frams3-img: '../img/designer/3.png';
$frams4-img: '../img/designer/4.png';
$frams5-img: '../img/designer/5.png';
$frams6-img: '../img/designer/6.png';
$frams7-img: '../img/designer/7.png';
$frams8-img: '../img/designer/8.png';
$resize-img: '../img/designer/resize.png';

/* Designer */
.input_tab {
  background-color: #a6c7e1;
  color: $black;
}

.content_fullscreen {
  position: relative;
  overflow: auto;
}

#canvas_outer {
  position: relative;
  width: 100%;
  display: block;
}

#canvas {
  background-color: $white;
  color: $black;
}

canvas.designer {
  display: inline-block;
  overflow: hidden;
  text-align: left;

  * {
    behavior: url(#default#VML);
  }
}

.designer_tab {
  background-color: $white;
  color: $black;
  border-collapse: collapse;
  z-index: 1;
  user-select: none;
  box-shadow: $box-shadow;
  border-radius: $border-radius;

  .header {
    background-color: tint-color($primary, 80%) !important;
  }
}

.tab_zag {
  text-align: center;
  cursor: move;
  padding: 1px;
  font-weight: bold;
  border-top-right-radius: $border-radius;
}

.tab_zag_2 {
  background-color: tint-color($primary, 60%) !important;
  text-align: center;
  cursor: move;
  padding: 1px;
  font-weight: bold;
  border-top-right-radius: $border-radius;
}

.tab_field {
  background: $white;
  color: $black;
  cursor: default;

  &:hover {
    background-color: $blue-100;
    color: $black;
    background-repeat: repeat-x;
    cursor: default;
  }
}

.tab_field_3 {
  background-color: $pink-100;
  color: $black;
  cursor: default;

  &:hover {
    background-color: $blue-100;
    color: $black;
    background-repeat: repeat-x;
    cursor: default;
  }
}

#designer_hint {
  white-space: nowrap;
  position: absolute;
  background-color: #9f9;
  color: $black;
  z-index: 3;
  border: #0c6 solid 1px;
  display: none;
}

#designer_body #page_content {
  margin: 0;
}

.scroll_tab {
  overflow: auto;
  width: 100%;
  height: 500px;
}

.designer_Tabs,
.L_butt2_1 {
  cursor: default;
  color: $blue;
  white-space: nowrap;
  text-decoration: none;
  text-indent: 3px;
  font-weight: bold;
  margin-left: 2px;
  text-align: left;
  padding: 0px 4px;

  &:hover {
    cursor: default;
    background-color: $blue-100;
    text-indent: 3px;
    font-weight: bold;
    white-space: nowrap;
    text-decoration: none;
    text-align: left;
    border-radius: $border-radius-sm;
  }
}

.owner {
  font-weight: normal;
  color: #888;
}

.option_tab {
  padding-left: 2px;
  padding-right: 2px;
  width: 5px;
}

.select_all {
  vertical-align: top;
  padding-left: 2px;
  padding-right: 2px;
  cursor: default;
  width: 1px;
  color: $black;
  background: linear-gradient(#b8e6fa, #b8e6fa 6%, #cdf5fd 10%, #dbffff 10%, #9bd2f6 50%, #9bd2f6 100%);
}

.small_tab {
  vertical-align: middle;
  background-color: tint-color($primary, 80%) !important;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  padding: 0 6px !important;
  width: 1px;
  text-decoration: none;
  border-top-left-radius: $border-radius;

  &:hover {
    vertical-align: middle;
    background-color: tint-color($primary, 60%) !important;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    padding: 0 6px !important;
    width: 1px;
    text-decoration: none;
  }
}

.small_tab_pref {
  vertical-align: middle;
  background-color: tint-color($primary, 80%) !important;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  padding: 0 6px !important;
  width: 1px;
  text-decoration: none;

  &:hover {
    vertical-align: middle;
    background-color: tint-color($primary, 60%) !important;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    padding: 0 6px !important;
    width: 1px;
    text-decoration: none;
  }
}

.small_tab_pref>img {
  width: 20px;
  height: 20px;
}

.butt {
  border: #47a solid 1px;
  font-weight: bold;
  background-color: $white;
  color: $black;
  vertical-align: baseline;
}

// .L_butt2_1 {
//   padding: 1px;
//   text-decoration: none;
//   vertical-align: middle;
//   cursor: default;

//   &:hover {
//     padding: 0;
//     border: #09c solid 1px;
//     background: #fe9;
//     color: $black;
//     text-decoration: none;
//     vertical-align: middle;
//     cursor: default;
//   }
// }

/* --------------------------------------------------------------------------- */
.bor {
  width: 10px;
  height: 10px;
}

.frams1 {
  background: url($frams1-img) no-repeat right bottom;
}

.frams2 {
  background: url($frams2-img) no-repeat left bottom;
}

.frams3 {
  background: url($frams3-img) no-repeat left top;
}

.frams4 {
  background: url($frams4-img) no-repeat right top;
}

.frams5 {
  background: url($frams5-img) repeat-x center bottom;
}

.frams6 {
  background: url($frams6-img) repeat-y left;
}

.frams7 {
  background: url($frams7-img) repeat-x top;
}

.frams8 {
  background: url($frams8-img) repeat-y right;
}

#osn_tab {
  position: absolute;
  background-color: $white;
  color: $black;
}

.designer_header {
  color: $black;
  text-align: center;
  font-weight: bold;
  margin: 0;
  padding: 0;
  background-position: top;
  background-repeat: repeat-x;
  border-right: $border-color solid 1px;
  border-left: $border-color solid 1px;
  border-bottom: $border-color solid 1px;
  height: 28px;
  z-index: 101;
  width: 100%;
  position: fixed;

  a,
  span {
    display: block;
    float: left;
  }

  .M_bord {
    display: block;
    float: left;
    margin: 4px;
    height: 20px;
    width: 2px;
  }

  a {
    &.first {
      margin-right: 1em;
    }

    &.last {
      margin-left: 1em;
    }
  }
}

a {

  &.M_butt_Selected_down_IE,
  &.M_butt_Selected_down {
    background-color: tint-color($primary, 90%);
    color: $primary;
    padding: 4px 10px;
    border-radius: $border-radius-sm;
  }

  &.M_butt {
    padding: 4px 10px;
    color: $dark;
    font-weight: normal;
  }

  &.M_butt:hover {
    background-color: $gray-300;
    color: $dark;
    border-radius: $border-radius-sm;
  }
}

.M_butt>img {
  width: 20px;
  height: 20px;
}

.L_butt2_1>img {
  width: 30px;
  height: 30px;
}

#layer_menu {
  z-index: 98;
  position: relative;
  float: right;
  background-color: $light;
  box-shadow: $box-shadow-lg;
  border-radius: $border-radius-2xl 0 0 $border-radius-2xl;
  padding: 2px;
}

#layer_upd_relation {
  position: absolute;
  left: 637px;
  top: 224px;
  z-index: 100;
}

#layer_new_relation,
#designer_optionse {
  position: absolute;
  left: 636px;
  top: 85px;
  z-index: 100;
  width: 153px;
}

#layer_menu_sizer {
  background-image: url($resize-img);
  cursor: ew-resize;

  .icon {
    margin: 0;
  }
}

.panel {
  position: fixed;
  top: 60px;
  right: 0;
  width: 350px;
  max-height: 500px;
  display: none;
  overflow: auto;
  padding-top: 34px;
  z-index: 102;
}

a {
  &.trigger {
    position: fixed;
    text-decoration: none;
    top: 60px;
    right: 0;
    color: $white;
    padding: 10px 40px 10px 15px;
    background: #333 url($plus-img) 85% 55% no-repeat;
    border: 1px solid #444;
    display: block;
    z-index: 102;

    &:hover {
      color: #080808;
      background: #fff696 url($plus-img) 85% 55% no-repeat;
      border: 1px solid #999;
    }
  }

  &.active.trigger {
    background: #222 url($minus-img) 85% 55% no-repeat;
    z-index: 999;

    &:hover {
      background: #fff696 url($minus-img) 85% 55% no-repeat;
    }
  }
}

.toggle_container .block {
  background-color: #dbe4e8;
  border-top: 1px solid #999;
}

.history_table {
  text-align: center;
  cursor: pointer;
  background-color: #dbe4e8;

  &:hover {
    background-color: #99c;
  }
}

#ab {
  min-width: 300px;

  .ui-accordion-content {
    padding: 0;
  }
}

#foreignkeychk {
  text-align: left;
  cursor: pointer;
}

.side-menu {
  float: left;
  position: fixed;
  width: auto;
  height: 80%;
  overflow: hidden;
  z-index: 50;
  padding: 2px;
  overflow-y: scroll;
  background-color: $light;
  top: 86px;
  box-shadow: $box-shadow;

  &.right {
    float: right;
    right: 0;
  }

  .hide {
    display: none;
    margin-left: 4px;
  }

  a {
    display: flex;
    float: none;
    align-items: center;
  }

  img,
  .text {
    float: left;
    height: 20px;
    width: 20px;
  }
}

#name-panel {
  border-bottom: 1px solid $border-color;
  text-align: center;
  background-color: $gray-200;
  width: 100%;
  font-size: 1.2em;
  padding: 5px;
  font-weight: bold;
}

#container-form {
  width: 100%;
  position: absolute;
  left: 0;
}

// small icons
.tab_field img,
.tab_field_3 img {
  width: 15px;
  height: 15px;
}