@font-face {
  font-family: 'Arcon';
  src:
    url('Resources/Fonts/Arcon/Arcon.ttf.svg#Arcon') format('svg'),
    url('Resources/Fonts/Arcon/Arcon.ttf.eot'),
    url('Resources/Fonts/Arcon/Arcon.ttf.eot?#iefix') format('embedded-opentype');
  font-weight: normal;
  font-style: normal;
}

.arcon {
  font-family: 'Arcon' !important;
  font-size: 3.5rem !important;
}

/* Scrollbar */
/* width */
::-webkit-scrollbar {
  width: 6px;
  margin-right: 1px;
}

/* Track */
::-webkit-scrollbar-track {
  background: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 2px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

body {
  color: black !important;
  overflow-x: hidden;
}

#substations-list {
  width: calc(100vw - 6px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#myaccount-modal-bg {
  display: none;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  height: calc(100vh);
  width: calc(100vw);
  background-color: black;
  opacity: 0.7;
}

#myaccount-modal {
  display: none;
  z-index: 1000;
  position: fixed;
  top: 2em;
  left: 2em;
  height: calc(100vh - 4em);
  width: calc(100vw - 4em);
}

#cables-summary {
  width: calc(100vw - 6px);
  position: relative;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
}

#machines-summary {
  width: calc(100vw - 6px);
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
}

.modal-bg {
  display: none;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  height: calc(100vh);
  width: calc(100vw);
  background-color: black;
  opacity: 0.7;
}

.modal-L {
  display: none;
  z-index: 1000;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  height: calc(100vh - 4em);
  width: calc(100vw - 4em);
}

.modal-M {
  display: none;
  z-index: 1000;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  height: calc(100vh - 4em);
  width: calc(100vw - 4em);

}

.modal-S {
  display: none;
  z-index: 1000;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  height: calc(100vh - 4em);
  width: calc(100% - 4em);
}

@media (min-width: 768px) {
  .modal-S {
    width: calc(100% - 40%);
  }
}

@media (min-width: 992px) {
  .modal-S {
    width: calc(100% - 60%);
  }
  .modal-M {
    width: calc(100% - 40%);
  }
}

.exit-modal-btn {
  color: black;
  position: absolute;
  top: 0.25em;
  right: 0.5em;
  z-index: 102;
}

.modal-container {
  width: 100%;
  background-color: white;
}

.filter-group {
  position: relative;
  display: flex;
  width: 100%;
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 1em;
  padding: 3px;
}

.filter-search-btn {
  display: inline-block;
  font-weight: normal;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.25;
  transition: all 0.15s;
  color: #111;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  border-radius: 1em;
}

.filter-selected-options {
  padding-left: 1em;
}

.filter-selected-option {
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  padding: 0.25em;
  padding-right: 1em;
  padding-left: 0.75em;
  border-radius: 1em;
  margin-top: 0.25em
}

.filter-selected-option-label {
  margin-left: 0.25em;
}

.filter-group-searchbox {
  margin-left: 0.25rem !important;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.col-ma-05 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 5%;
  flex: 0 0 5%;
  max-width: 5%;
}

.col-ma-05-centre {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 5%;
  flex: 0 0 5%;
  max-width: 5%;
  text-align: center;
  vertical-align: middle;
}

.col-ma-075 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 7.5%;
  flex: 0 0 7.5%;
  max-width: 7.5%;
}

.col-ma-1 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 10%;
  flex: 0 0 10%;
  max-width: 10%;
}

.col-ma-15 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 15%;
  flex: 0 0 15%;
  max-width: 15%;
}

.col-ma-2 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 20%;
  flex: 0 0 20%;
  max-width: 20%;
}

.col-ma-25 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 25%;
  flex: 0 0 25%;
  max-width: 25%;
}

.col-ma-3 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 30%;
  flex: 0 0 30%;
  max-width: 30%;
}

.col-ma-4 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 40%;
  flex: 0 0 40%;
  max-width: 40%;
}

.col-ma-5 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
}

.col-ma-6 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 60%;
  flex: 0 0 60%;
  max-width: 60%;
}

.col-ma-7 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 70%;
  flex: 0 0 70%;
  max-width: 70%;
}

.col-ma-8 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 80%;
  flex: 0 0 80%;
  max-width: 80%;
}

.col-ma-9 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 90%;
  flex: 0 0 90%;
  max-width: 90%;
}

.col-ma-10 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

.btn-ma {
  display: inline-block;
  font-weight: 400;
  color: #858796;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.35rem;
  min-width: 2em;
  -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

.dropdown-ma-toggle::after {
  display: inline-block;
  margin-left: 0em;
  vertical-align: 0em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0em solid transparent;
  border-bottom: 0;
  border-left: 0em solid transparent;
}

/*////////////////////////////////////////////////*/
.text-group-icon {
  position: absolute;
  right: 2em;
  text-align: center;
  vertical-align: middle;
  line-height: 3em;
  width: 2em;
}

.text-group-status {
  position: absolute;
  z-index: 1;
  right: 2em;
  top: 1em;
}

.text-group {
  position: relative;
  display: inline-block;
  width: 100%;
}

.text-input {
  font-size: 1em;
  padding: 0.75em;
  display: inline-block;
  width: calc(100% - 1.5em);
  border: none;
  border-bottom: 1px solid #757575;
}

.text-input-empty {
  font-size: 1em;
  padding: 0.75em;
  display: inline-block;
  width: calc(100% - 1.5em);
  border: 1px solid red;
  animation-name: border-animate;
  animation-duration: 2s;
  animation-iteration-count: 1;
}

@keyframes border-animate {
  0% {
    border: 1px solid white;
    border-bottom: 1px solid #757575;
  }
  25% {
    border: 1px solid red;
  }
  50% {
    border: 1px solid white;
    border-bottom: 1px solid #757575;
  }
  75% {
    border: 1px solid red;
  }
  100% {
    border: 1px solid white;
    border-bottom: 1px solid #757575;
  }
}

#cable-name {
  -webkit-transition: border 0.25s;
  -moz-transition: border 0.25s;
  transition: border 0.25s;
}

.multi {
  font-size: 1em;
  padding: 0.75em;
  display: inline-block;
  width: calc(100% - 1.5em);
  border: 1px solid #757575;
}

.select-input {
  font-size: 1em;
  padding: 0.75em;
  display: inline-block;
  width: calc(100% - 1.5em);
  border: none;
  border-bottom: 1px solid #757575;
}

.select-input:disabled {
  opacity: 100%;
}

.text-input:focus {
  outline: none;
}

.select-input:focus {
  outline: none;
}

.multi:focus {
  outline: none;
}

.text-input-label {
  color: #999;
  font-size: 1em;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 0.5em;
  top: 0.75em;
  transition: 0.2s ease all;
}

.multi~.text-input-label {
  left: 1em;
}

.text-input-label-fixed {
  color: #5264AE;
  font-size: 0.75em;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 0.5em;
  top: -0.8em;
  transition: 0.2s ease all;
}

.text-input:focus~.text-input-label, .text-input:valid~.text-input-label, .text-input:disabled~.text-input-label, .select-input:focus~.text-input-label, .select-input:valid~.text-input-label, .select-input:disabled~.text-input-label {
  top: -.8em;
  font-size: 0.75em;
  color: #5264AE;
}

.multi:focus~.text-input-label, .multi:valid~.text-input-label, .multi:disabled~.text-input-label {
  top: -1.5em;
  font-size: 0.75em;
  color: #5264AE;
}

.text-bar {
  position: relative;
  display: block;
  width: calc(100% - 1.5em);
}

.text-bar:before, .text-bar:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: #5264AE;
  transition: 0.2s ease all;
}

.multi~.text-bar:before, .multi~.text-bar:after {
  bottom: 8px;
}

.text-bar:before {
  left: 50%;
}

.text-bar:after {
  right: 50%;
}

/* active state */
.text-input:focus~.text-bar:before, .text-input:focus~.text-bar:after, .multi:focus~.text-bar:before, .multi:focus~.text-bar:after, .select-input:focus~.text-bar:before, .select-input:focus~.text-bar:after {
  width: 50%;
}
