﻿#contacts .con {
  display: flex;
  height: 100%;
}
#contacts .con .contact-groups {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #ddd;
  position: relative;
}
#contacts .con .contact-groups .cons h2 {
  border-bottom: 1px solid #ddd;
  color: #808080;
  padding-left: 10px;
  padding-bottom: 5px;
}
#contacts .con .contact-groups .cg-cons {
  display: flex;
  padding: 5px;
}
#contacts .con .contact-groups .cg-cons > div {
  margin-right: 10px;
  color: #696969;
  cursor: pointer;
}
#contacts .con .contact-groups .cg-cons > div:hover {
  color: #333333;
}
#contacts .con .contact-groups .cg-search {
  display: flex;
  border-bottom: 1px solid #ddd;
}
#contacts .con .contact-groups .cg-search input {
  flex: 1 1 auto;
  padding-left: 5px;
  margin: 3px;
  border: 1px solid #ddd;
}
#contacts .con .tree {
  flex: 1 1 auto;
  display: flex;
  color: #696969;
  overflow: auto;
  font-size: 12px;
  padding-top: 10px;
}
#contacts .con .tree .groups {
  flex: 1 1 auto;
  position: relative;
}
#contacts .con .tree .groups .ag {
  flex: 1 1 auto;
  margin: 5px;
  border: 1px dashed #ddd;
  text-align: center;
  padding: 5px;
  color: #696969;
}
#contacts .con .tree .group {
  flex: 1 1 auto;
}
#contacts .con .tree .group .h {
  display: flex;
  align-items: center;
  padding-right: 100px;
}
#contacts .con .tree .group .h > * {
  display: inline-block;
}
#contacts .con .tree .group .h .c-a {
  display: none;
}
#contacts .con .tree .group .h:hover {
  color: #fff;
}
#contacts .con .tree .group .h:hover .bg {
  background-color: #5272a6;
  /*                        border-radius: 3px;*/
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
}
#contacts .con .tree .group .h .i {
  flex: 0 0 20px;
  text-align: center;
  z-index: 1;
}
#contacts .con .tree .group .h .t {
  flex: 1 1 auto;
  line-height: 24px;
  white-space: nowrap;
  z-index: 1;
}
#contacts .con .tree .group .items {
  padding-left: 20px;
  display: none;
}
#contacts .con .tree .group.active > .h .c-c {
  display: none;
}
#contacts .con .tree .group.active > .h .c-a {
  display: inline-block;
}
#contacts .con .tree .group.active > .items {
  display: block;
}
#contacts .con .tree .group.selected > .h {
  color: #fff;
}
#contacts .con .tree .group.selected > .h .bg {
  background-color: #5292a6;
  /*                        border-radius: 3px;*/
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
}
#contacts .con .tree .group.ni .h .c-c::before {
  content: "";
}
#contacts .con .tree .group.ni .h .c-a::before {
  content: "";
}
#contacts .panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: auto;
  position: relative;
}
#contacts .panel h2 {
  font-size: 20px;
  padding: 5px;
  color: #797979;
}
#contacts .panel fieldset {
  padding-top: 0;
}
#contacts .panel .controls {
  display: flex;
  align-items: end;
  padding: 3px;
  padding-bottom: 3px;
  height: 59px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}
#contacts .panel .controls input {
  flex: 1 1 auto;
  border: none;
  border-bottom: 1px dashed #ddd;
  margin: 0 5px;
  font-size: 20px;
}
#contacts .panel .controls > div {
  margin-left: 5px;
}
#contacts .panel .details {
  flex: 0 0 150px;
  border-bottom: 1px solid #ddd;
  padding: 5px;
  display: flex;
  flex-direction: column;
  /* .ico {
      .btn {
          margin: 5px;
          border: 1px solid #ddd;
          border-radius: 5px;
          text-align: center;
          padding: 10px;
          background-color: #f7f7f7;
      }
  }*/
}
#contacts .panel .details textarea {
  flex: 1 1 auto;
}
#contacts .panel .cons {
  flex: 1 1 auto;
  border-bottom: 1px solid #ddd;
  min-height: 100px;
  display: flex;
  flex-direction: column;
}
#contacts .panel .addr {
  flex: 1 1 auto;
  min-height: 100px;
  display: flex;
  flex-direction: column;
}
#contacts .c-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
#contacts .c-dis {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  opacity: 0.6;
  align-items: center;
  justify-content: center;
}

fieldset.full {
  width: unset;
}

.contact-collection {
  flex: 1 1 auto;
  padding: 10px;
  position: relative;
}

.address-collection {
  flex: 1 1 auto;
  padding: 10px;
  position: relative;
}

#contacts .it-cont .bg {
  background: none;
  border-bottom: 1px solid #ddd;
  height: 40px;
}
#contacts .it-cont .it-head {
  height: 40px;
}
#contacts .it-cont .it-head > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#contacts .it-cont .it-body {
  top: 40px;
}
#contacts .it-cont .it-body table tr:hover td {
  background: none;
}
#contacts .it-cont .it-body table tr.active td {
  background: none !important;
}
#contacts .it-cont .it-body table input[type=text] {
  border: none;
  padding-left: 5px;
  width: 100%;
}
#contacts .it-cont .it-body table .ph input[type=radio],
#contacts .it-cont .it-body table .ph .it-col-delete span {
  display: none;
}
#contacts .it-cont .it-body table .it-col-default {
  text-align: center;
}
#contacts .it-cont .it-body table .it-col-delete span {
  color: #bc1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
}
