@font-face {
  font-family: 'Roboto Regular';
  src: url('../fonts/Roboto-Regular.eot'); /* IE9 Compat Modes */
  src: url('../fonts/Roboto-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/Roboto-Regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/Roboto-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Roboto Bold';
  src: url('../fonts/Roboto-Bold.eot'); /* IE9 Compat Modes */
  src: url('../fonts/Roboto-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/Roboto-Bold.woff') format('woff'), /* Modern Browsers */
       url('../fonts/Roboto-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

/* popup styles */
.eva_sfa_popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 51, 51, 0.5);
  z-index: 101;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
}

.eva_sfa_popup_window {
  position: relative;
  width: 390px;
  margin: 0 auto;
  padding-bottom: 80px;
  top: 15%;
  background: #ffffff;
}

.eva_sfa_popup_window_big {
  position: relative;
  width: 520px;
  min-height: 275px;
  margin: 0 auto;
  padding-bottom: 80px;
  top: 2%;
  background: #ffffff;
}

.eva_sfa_popup_header {
  font-size: 20px;
  padding: 20px;
}

.eva_sfa_popup_header_error {
  background: #ff5353;
  color: #ffffff;
}

.eva_sfa_popup_header_info {
  background: #6bc45f;
  color: #ffffff;
}

.eva_sfa_popup_header_warning {
  background: #fbb03b;
  color: #ffffff;
}

.eva_sfa_popup_header_confirm {
  background: #054a77;
  color: #ffffff;
}

.eva_sfa_popup_content {
  display: flex;
  min-height: 70px;
  margin: 20px 30px;
  text-align: left;
  font: 14px 'Roboto Regular';
  color: #4d4d4d;
  text-align: left;
  vertical-align: middle;
}
.eva_sfa_popup_content > div,
.eva_sfa_popup_content > form {
  max-width: 300px;
  margin: auto;
}
.eva_sfa_popup_content form {
  width: 100%;
}
.eva_sfa_popup_content > form.edit_unit_dialog,
.eva_sfa_popup_content > form.rule_dialog {
  margin: 0;
  max-width: 100%;
}
.eva_sfa_popup_content > form.rule_dialog > .form-group {
  width: 100%;
  margin-bottom: 10px;
}
.eva_sfa_popup_content > form.edit_unit_dialog > .form-group:last-child,
.eva_sfa_popup_content > form.rule_dialog > .form-group:last-child {
  margin-bottom: 0;
}
.eva_sfa_popup_content > button {
  height: 30px;
  margin: auto;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #4d4d4d;
  border-radius: 15px;
  font: 14px 'TTNorms Medium';
  color: #4d4d4d;
  cursor: pointer;
}
.eva_sfa_popup_content > button:hover {
  background: #4d4d4d;
  border-color: #fff;
  color: #fff;
}
.eva_sfa_popup_content > button:focus {
  outline: none;
}
.content_msg {
  font-family: 'Roboto Bold';
  margin: auto;
}
.eva_sfa_popup_content label {
  margin-bottom: 3px;
}
#l_rule_enabled,
#l_rule_chillout {
  margin-top: 10px;
}

.eva_sfa_popup_content .form-control {
  height: auto;
  font: 14px 'Roboto Regular';
  color: #666;
  border: 1px solid #ccc;
  padding: 2px 5px;
}

.eva_sfa_popup_content .form-control:focus {
  border: 2px solid #999;
  box-shadow: none;
  margin-top: -1px;
  margin-bottom: -1px;
}

.form_delimiter {
  width: 100%;
  margin: 10px 15px 20px;
  border-bottom: 1px solid #ccc;
}

.custom_chbox_holder {
  width: 100%;
  height: 25px;
}
.custom_chbox {
  vertical-align: top;
  width: 17px;
  height: 17px;
  margin: 0 3px 0 0;
}
.custom_chbox + label {
  cursor: not-allowed;
}
.custom_chbox:enabled + label {
  cursor: pointer;
}
.custom_chbox:not(checked) {
  position: absolute;
  z-index: -1;
  opacity: 0;
  margin: 10px 0 0 20px;
}
.custom_chbox:not(checked) + label {
  position: relative;
  padding: 0 0 0 90px;
  line-height: 19px;
}
.custom_chbox:not(checked) + label:before {
  content: attr(data-on);
  text-align: right;
  color: #fff;
  padding: 3px 10px;
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 25px;
  border-radius: 2px;
  background: #B3B3B3;
  transition: .2s;
}
.custom_chbox_round:not(checked) + label:before {
  border-radius: 20px;
}
.custom_chbox:not(checked):hover:enabled + label:before {
  background: #808080;
}
.custom_chbox:not(checked):active:enabled + label:before {
  background: #666;
}
.custom_chbox:not(checked) + label:after {
  content: attr(data-off);
  text-align: center;
  position: absolute;
  top: 3px;
  left: 3px;
  width: 45px;
  height: 19px;
  border-radius: 2px;
  background: #FFF;
  color: #808080;
  transition: .2s;
}
.custom_chbox_round:not(checked) + label:after {
  border-radius: 20px;
}
.custom_chbox:checked + label:before {
  content: attr(data-off);
  text-align: left;
  background: #6BC45F;
}
.custom_chbox:checked:hover:enabled + label:before {
  background: #82d150;
  cursor: ;
}
.custom_chbox:checked + label:after {
  content: attr(data-on);
  width: 40px;
  left: 47px;
  color: #6BC45F;
}
.debug_chbox {
  display: inline;
  margin-left: 5px;
}
.debug_chbox .custom_chbox + label {
  padding-left: 73px;
  font-size: 12px;
  line-height: 15px;
}
.debug_chbox .custom_chbox:not(checked) + label::before {
  top: -6px;
  width: 73px;
  height: 19px;
  padding: 2px 8px;
  border-radius: 12px;
}
.debug_chbox .custom_chbox:not(checked) + label::after {
  top: -4px;
  left: 2px;
  width: 33px;
  height: 15px;
  border-radius: 10px;
}
.debug_chbox .custom_chbox:checked + label::after {
  left: 38px;
}

.form_radio_holder {
  width: 100%;
  display: flex;
  margin-top: 2px;
}
.form_radio_holder > div {
  position: relative;
  margin-right: auto;
  padding: 4px;
  border-radius: 15px;
  overflow: hidden;
  background-color: #fff;
}
.form_radio {
  display: none;
}
.form_radio + label {
  cursor: pointer;
  margin: 0;
  line-height: 16px;
}
.form_radio[disabled] + label {
  cursor: not-allowed;
}
.form_radio:not(checked) + label {
  color: #b3b3b3;
  position: relative;
  padding: 2px 10px;
  z-index: 2;
}
.form_radio:not(checked) + label:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  background: transparent;
  z-index: -1;
}
#radio_NO:checked + label:before,
#radio_0:checked + label:before,
[id*="radio_"][value="0"]:checked + label:before {
  background: #e6e6e6;
  border: 2px solid #b3b3b3;
}
.form_radio:checked + label::before,
#radio_YES:checked + label:before,
#radio_1:checked + label:before,
[id*="radio_"][value="1"]:checked + label:before {
  background: #84cb6a;
  border: 2px solid #666;
}
#radio_-1:checked + label:before,
[id*="radio_"][value="-1"]:checked + label:before {
  background: #000;
  border: 2px solid #000;
}
.form_radio + label + .bg_col {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 15px;
  z-index: 1;
}
.form_radio:checked + label {
  color: #fff;
}
#radio_NO:checked + label,
#radio_0:checked + label,
[id*="radio_"][value="0"]:checked + label,
#radio_-1:checked + label,
[id*="radio_"][value="-1"]:checked + label {
  color: #b3b3b3;
}
.form_radio:checked + label + .bg_col {
  background: #fff;
  border: 2px solid #ccc;
}
.form_radio:enabled:checked + label + .bg_col {
  border-color: #666;
}

.eva_sfa_popup_footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.eva_sfa_popup_btn_holder {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: flex-end;
  padding: 20px 8px;
}

.eva_sfa_popup_window_big .eva_sfa_popup_btn_holder {
  max-width: 480px;
  padding: 20px 33px;
}

.eva_sfa_popup_btn {
  font: 14px 'Roboto Bold';
  min-width: 80px;
  height: 33px;
  margin: 0 12px;
  padding: 0 22px;
  border-radius: 24px;
  line-height: 30px;
  cursor: pointer;
}

.eva_sfa_popup_btn_cancell {
  border: 2px solid #ccc;
  background: #fff;
  color: #ccc;
}

.eva_sfa_popup_btn_error {
  border: 2px solid #ff5353;
  background: #ff5353;
  color: #ffffff;  
}

.eva_sfa_popup_btn_info {
  border: 2px solid #6bc45f;
  background: #6bc45f;
  color: #ffffff;  
}

.eva_sfa_popup_btn_warning {
  border: 2px solid #fbb03b;
  background: #fbb03b;
  color: #ffffff;  
}

.eva_sfa_popup_btn_confirm {
  border: 2px solid #054a77;
  background: #054a77;
  color: #ffffff;  
}

.eva_sfa_popup_btn_error:hover {
  background: #ff8282;
  border-color: #ff8282;
}

.eva_sfa_popup_btn_info:hover {
  background: #82d150;
  border-color: #82d150;
}

.eva_sfa_popup_btn_cancell:hover {
  border: 2px solid #b3b3b3;
  color: #b3b3b3;
}

.eva_sfa_popup_btn_confirm:hover {
  border: 2px solid #1A69A4;
  background: #1A69A4;
}

.eva_sfa_popup_btn_warning:hover {
  border: 2px solid #ffcb00;
  background: #ffcb00;
}

.eva_sfa_popup_btn_cancell:active {
  border: 2px solid #808080;
  color: #808080;
}

.eva_sfa_popup_btn_error:active {
  border: 2px solid #ff9e8c;
  background: #ff9e8c;
}

.eva_sfa_popup_btn_info:active {
  border: 2px solid #91dd77;
  background: #91dd77;
}

.eva_sfa_popup_btn_warning:active {
  border: 2px solid #ffde00;
  background: #ffde00;
}

.eva_sfa_popup_btn_confirm:active {
  border: 2px solid #238CDB;
  background: #238CDB;
}

.table.ports-table th, .table.ports-table td {
  padding: .25rem .5rem;
}

@media(max-width: 767px){
  .eva_sfa_popup_content {
    padding-bottom: 0;
  }
  .eva_sfa_popup_window {
    min-height: 240px;
  }
}

@media(max-width:575px) {
  .eva_sfa_popup_window_big .eva_sfa_popup_btn_holder {
    padding: 20px 18px;
  }
  .eva_sfa_popup_window_big {
    width: 100%;
    max-width: 440px;
  }
  .eva_sfa_popup_window_big .eva_sfa_popup_content{
    margin: 20px 15px;
  }
  .eva_sfa_popup_window {
    width: 100%;
    max-width: 390px;
  }
  .form_delimiter {
    display: none;
  }
}

/*@media (max-width: 450px), (max-height: 450px){
  .eva_sfa_popup_window {
    width: 90%;
    min-height: 200px;
  }
}*/

@media (max-height: 415px){
  .eva_sfa_popup_window {
    top: 15%;
  }
}

@media (max-height: 350px){
  .eva_sfa_popup_window {
    top: 5%;
  }
}

/* load animation styles */
.eva-sfa-cssload-square {
  margin: 123px auto;
  width: 35px;
  height: 35px;
  transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
}

.eva-sfa-cssload-square-part {
  position: absolute;
  width: 35px;
  height: 35px;
  z-index: 1;
  animation: eva-sfa-cssload-part-anim 0.8s
    cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
  -o-animation: eva-sfa-cssload-part-anim 0.8s
    cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
  -ms-animation: eva-sfa-cssload-part-anim 0.8s
    cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
  -webkit-animation: eva-sfa-cssload-part-anim 0.8s
    cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
  -moz-animation: eva-sfa-cssload-part-anim 0.8s
    cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}

.eva-sfa-cssload-square-green {
  background: rgb(58,176,234);
  right: 0;
  bottom: 0;
  animation-direction: alternate-reverse;
    -o-animation-direction: alternate-reverse;
    -ms-animation-direction: alternate-reverse;
    -webkit-animation-direction: alternate-reverse;
    -moz-animation-direction: alternate-reverse;
}

.eva-sfa-cssload-square-pink {
  background: rgb(96,148,204);
  left: 0;
  top: 0;
}

.eva-sfa-cssload-square-blend {
  background: rgb(255,255,255);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 2;
  animation: eva-sfa-blend-anim 0.8s ease-in infinite;
    -o-animation: eva-sfa-blend-anim 0.8s ease-in infinite;
    -ms-animation: eva-sfa-blend-anim 0.8s ease-in infinite;
    -webkit-animation: eva-sfa-blend-anim 0.8s ease-in infinite;
    -moz-animation: eva-sfa-blend-anim 0.8s ease-in infinite;
}

@keyframes eva-sfa-blend-anim {
  0% {
    transform: scale(0.01, 0.01) rotateY(0);
    animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
  }
  50% {
    transform: scale(1, 1) rotateY(0);
    animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  }
  100% {
    transform: scale(0.01, 0.01) rotateY(0);
  }
}

@-o-keyframes eva-sfa-blend-anim {
  0% {
    -o-transform: scale(0.01, 0.01) rotateY(0);
    -o-animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
  }
  50% {
    -o-transform: scale(1, 1) rotateY(0);
    -o-animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  }
  100% {
    -o-transform: scale(0.01, 0.01) rotateY(0);
  }
}

@-ms-keyframes eva-sfa-blend-anim {
  0% {
    -ms-transform: scale(0.01, 0.01) rotateY(0);
    -ms-animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
  }
  50% {
    -ms-transform: scale(1, 1) rotateY(0);
    -ms-animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  }
  100% {
    -ms-transform: scale(0.01, 0.01) rotateY(0);
  }
}

@-webkit-keyframes eva-sfa-blend-anim {
  0% {
    -webkit-transform: scale(0.01, 0.01) rotateY(0);
    -webkit-animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
  }
  50% {
    -webkit-transform: scale(1, 1) rotateY(0);
    -webkit-animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  }
  100% {
    -webkit-transform: scale(0.01, 0.01) rotateY(0);
  }
}

@-moz-keyframes eva-sfa-blend-anim {
  0% {
    -moz-transform: scale(0.01, 0.01) rotateY(0);
    -moz-animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
  }
  50% {
    -moz-transform: scale(1, 1) rotateY(0);
    -moz-animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  }
  100% {
    -moz-transform: scale(0.01, 0.01) rotateY(0);
  }
}

@keyframes eva-sfa-cssload-part-anim {
  0% {
    transform: translate3d(-18px, -18px, 0);
  }
  100% {
    transform: translate3d(18px, 18px, 0);
  }
}

@-o-keyframes eva-sfa-cssload-part-anim {
  0% {
    -o-transform: translate3d(-18px, -18px, 0);
  }
  100% {
    -o-transform: translate3d(18px, 18px, 0);
  }
}

@-ms-keyframes eva-sfa-cssload-part-anim {
  0% {
    -ms-transform: translate3d(-18px, -18px, 0);
  }
  100% {
    -ms-transform: translate3d(18px, 18px, 0);
  }
}

@-webkit-keyframes eva-sfa-cssload-part-anim {
  0% {
    -webkit-transform: translate3d(-18px, -18px, 0);
  }
  100% {
    -webkit-transform: translate3d(18px, 18px, 0);
  }
}

@-moz-keyframes eva-sfa-cssload-part-anim {
  0% {
    -moz-transform: translate3d(-18px, -18px, 0);
  }
  100% {
    -moz-transform: translate3d(18px, 18px, 0);
  }
}
