@import 'def';
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800');

$cardpadding: 20px 25px;

html {
    height:100%;
}

body {
    font-family:'Montserrat', sans-serif!important;
    padding:65px 0 0 0;
    @include themify($themes) {
        font-size:themed('bodysize');
        background-color:themed('bodybg');
    }
    font-weight:400;
    height:100%;
    overflow-x: hidden;
}
.bg {
    position: fixed;
    width:100%;
    height:100%;
    z-index:0;
    @include themify($themes) {
        background-color:themed('bodybg');
      }

      i {
        font-size:300px;
        position: absolute;
        top:-175px;
        left:0px;
        opacity:0.5;
        @include themify($themes) {
            color: themed('cardbg');
         }
      }

}

.alertborder {
    @include themify($themes) {
        border-color: themed('alert')!important;
    } 
}

.wrapper {
    @include themify($themes) {
        background-color:themed('bodybg');
        color: themed('txtcolor1');
        height:100%;
      }
}

.container-fluid {
    padding-right: 40px;
    padding-left: 40px;
    
    > .row {
    margin-top:25px; 
    }
}

h1,h2,h3,h4,h5,h6,p,a,ul,li{
    font-family:'Montserrat', sans-serif!important;

}

i.icon-start {
    @include themify($themes) {
        color:themed('operations')!important;
    }
    span {
        @include themify($themes) {
            color:themed('txtcolor100')!important;
        }
    }
}

i.icon-stop {
    @include themify($themes) {
        color:themed('alert')!important;
    }
    span {
        @include themify($themes) {
            color:themed('txtcolor100')!important;
        }
    }
}

.icon-service + .icon-plusvirtual {
    transform: translate(2px, 0px);
}

.icon-radio + .icon-plusvirtual {
    transform: translate(10px, 0px);
}

.icon-alert + .icon-plusvirtual, .icon-warning + .icon-plusvirtual {
    transform: translate(2px, -6px);
}

i.icon-cirk_bg {
    transform: translateX(20%);
}

h1 {
    @include themify($themes) {
        font-size: themed('h1');
        color: themed('txtcolor100');
    }
}

h2 {
    @include themify($themes) {
        font-size: themed('h2');
        color: themed('txtcolor1');
    }
}

h5 {
    @include themify($themes) {
        color: themed('txtcolor100');
    }
}

h1, h2 {
    font-weight:400;
}

p {
    @include themify($themes) {
        font-size: themed('p');
    }
    font-weight: 300;
}

a {
    &:hover {
        text-decoration: none;
    }
}

.color-ok {
    @include themify($themes) {
        color:themed('operations')!important;
    }
}

.color-power {
    @include themify($themes) {
        color:themed('barvalue')!important;
    }
}

.color-predictor {
    @include themify($themes) {
        color:themed('predictor')!important;
    }
}

.color-virtual {
    @include themify($themes) {
        color:themed('virtual')!important;
    }
}

.color-wind {
    @include themify($themes) {
     color:themed('service')!important;
    }
}

.color-alert {
    @include themify($themes) {
        color:themed('alert')!important;
    }
}

.color-warning {
    @include themify($themes) {
        color:themed('warning')!important;
    }
}

.color-service {
    @include themify($themes) {
        color:themed('service')!important;
    }
}

.color-comm {
    @include themify($themes) {
        color:themed('comm')!important;
    }
}

.color-100 {
    @include themify($themes) {
        color:themed('txtcolor100')!important;
    }
}

.online1 {
    @include themify($themes) {
        color:themed('online1')!important;
    }
}
.online2 {
    @include themify($themes) {
        color:themed('online2')!important;
    }
}
.online3 {
    @include themify($themes) {
        color:themed('online3')!important;
    }
}
.online4 {
    @include themify($themes) {
        color:themed('online4')!important;
    }
}
.online5 {
    @include themify($themes) {
        color:themed('online5')!important;
    }
}
.online6 {
    @include themify($themes) {
        color:themed('online6')!important;
    }
}
.online7 {
    @include themify($themes) {
        color:themed('online7')!important;
    }
}
.online8 {
    @include themify($themes) {
        color:themed('online8')!important;
    }
}

.bg-online1 {
    @include themify($themes) {
        background-color:themed('online1')!important;
    }
}
.bg-online2 {
    @include themify($themes) {
        background-color:themed('online2')!important;
    }
}
.bg-online3 {
    @include themify($themes) {
        background-color:themed('online3')!important;
    }
}
.bg-online4 {
    @include themify($themes) {
        background-color:themed('online4')!important;
    }
}
.bg-online5 {
    @include themify($themes) {
        background-color:themed('online5')!important;
    }
}
.bg-online6 {
    @include themify($themes) {
        background-color:themed('online6')!important;
    }
}
.bg-online7 {
    @include themify($themes) {
        background-color:themed('online7')!important;
    }
}
.bg-online8 {
    @include themify($themes) {
        background-color:themed('online8')!important;
    }
}

.bg-alert {
    @include themify($themes) {
        background-color:themed('alert')!important;
    }
}

.bg-warning {
    @include themify($themes) {
        background-color:themed('themed('warning')')!important;
    }
}

.bg-service {
    @include themify($themes) {
        background-color:themed('service')!important;
    }
}

.bg-green {
    @include themify($themes) {
        background-color:themed('grassgreen')!important;
    }
}

.bg-blue {
    @include themify($themes) {
        background-color:themed('windblue')!important;
    }
}

.bg-neutral {
    @include themify($themes) {
        background-color:themed('neutral')!important;
    }
}

.bg-predictor {
    @include themify($themes) {
        background-color:themed('predictor')!important;
    }
}

.bg-virtual {
    @include themify($themes) {
        background-color:themed('virtual')!important;
    }
}


/* standard button */

button.btn {
    padding: 0px 20px;
    font-size: 15px;
    height: 33px;
    @include themify($themes) {
        background-color: themed('navbg');
        color: themed('txtcolor100');
    }
}


/* backlink */

a.backlink {
    display: inline-block;
    margin: 5px 15px 10px 0;
    font-size:14px;
    @include themify($themes) {
        color: themed('txtcolor100');
    }
}

/* Filter indicator */

p.filterindicator {
    display: inline-block;
    height:26px;
    border-radius:13px;
    padding: 2px 20px 0px 20px;
    font-weight: 400;
    @include themify($themes) {
        color: themed('txtcolor100');
        background-color: themed('focusborder');
    }
}


/* Custom form elements */

.inputwrapper input, .inputwrapper .imageinput {

}

.inputwrapper {

    input, textarea {
        @include themify($themes) {
            border: 1px solid themed('trBorderColor');
            background-color: themed('bodybg');
            color: themed('txtcolor100');
        }
        font-size:14px;
        padding:5px 10px;
        vertical-align: top; 
        width:auto;
        
        &::placeholder {
            @include themify($themes) {
                font-size:14px;
                font-weight: 300;
                color:themed('txtcolor100');
            }
        }
    }
    
    .dropdown-menu {
        font-size: 14px;
        /*width: calc(100% + 55px);*/
        @include themify($themes) {
            border: 1px solid themed('trBorderColor');
            background-color: themed('bodybg');
            color: themed('txtcolor100');
            border-radius: 0px;          
        }

        table {
            width:100%;

           
            tr {
                border-bottom:none;
                height:25px;
                cursor: pointer;
                &:hover {
                    

                    @include themify($themes) {
                        font-size:14px;
                        font-weight: 300;
                        background-color:themed('navbg');
                    }
                }
                
                td {
                        padding: 8px 15px;
                   
                    }
                }
            }
    }


}

.imageinput {
    position: relative; 
    display: inline-block;
    margin-right: 20px;
    width:200px;  
    vertical-align: top;
    
    &.recipients {
        margin-bottom:4px; 
        width:100%;
        input {
            width:100%;
        }
        img {
            right:0px;
        }
    }

    .dropdown-menu {
        img {
            position: relative;
            margin-right:10px;
            padding:0px;
            height:14px;
        }
    }  
    input {
        padding-right: 30px;
    }

    img {
        position: absolute;
        right: -8px;
        padding: 10px 12px;
        pointer-events: none;
        top: 0px;
        z-index:999;
        height: 32px;
    }

    i {
        position:absolute;
        transform: translate(-28px, 5px);
        &.icon-search {
            transform: translate(-28px, 3px);
        }
    }
}



/* CARDS */

.scadacard {
    border-radius: 10px;
    border:none;
    padding: $cardpadding;
    position:relative;
    overflow: hidden;
    transition: all 0.4s;

    @include themify($themes) {
        background-color: themed('cardbg');
    }

    &.level1 {
        box-shadow: 0px 0px 10px rgba(0,0,0,0.05);

    }

    &.level2 {
        box-shadow: 0px 0px 10px rgba(0,0,0,0.2);

    }

    &.nopadding {
        padding:0;
    }
}    

#monitorwrapper {
    overflow-y:visible;
    margin-bottom:30px;
}

#mapmonitorwrapper {
    padding:0;
}

.loader{
    margin: 0 50%;
    height: auto;
    width: 40px;
    text-align: center;
    padding-top: 1em;
    display: inline-block;
    vertical-align: top;
  }
  
  
  svg path,svg rect{
    fill: #ccc;
  }

 

 /* Custom Chrome Scroll bars */

 ::-webkit-scrollbar {
    width: 8px;
    background-color: rgba(0,0,0,0);
    -webkit-border-radius: 100px;
  }
  ::-webkit-scrollbar:hover {
    background-color: rgba(0, 0, 0, 0.09);
  }
  
  ::-webkit-scrollbar-thumb:vertical {
    background: rgba(0,0,0,0.5);
    -webkit-border-radius: 100px;
  }
  ::-webkit-scrollbar-thumb:vertical:active {
    background: rgba(0,0,0,0.61); 
    -webkit-border-radius: 100px;
  }


.tooltip-inner {
    max-width: 200px;
    padding: 3px 8px;
    text-align: center;
    border-radius: .25rem;

    @include themify($themes) {
        background-color: themed('label-count-bg');
        color:themed('color0');
    }
    
}


.tooltip.bs-tooltip-auto[x-placement^=top] .arrow::before, .tooltip.bs-tooltip-top .arrow::before {
    margin-left: -3px;
    content: "";
    border-width: 5px 5px 0;
    @include themify($themes) {
        border-top-color: themed('label-count-bg');
    }
}

.tooltip.bs-tooltip-auto[x-placement^=right] .arrow::before, .tooltip.bs-tooltip-right .arrow::before {
    margin-top: -3px;
    content: "";
    border-width: 5px 5px 5px 0;
    @include themify($themes) {
        border-right-color: themed('label-count-bg');
    }
}

.tooltip.bs-tooltip-auto[x-placement^=bottom] .arrow::before, .tooltip.bs-tooltip-bottom .arrow::before {
    margin-left: -3px;
    content: "";
    border-width: 0 5px 5px;
    @include themify($themes) {
        border-bottom-color: themed('label-count-bg');
    }
}

.tooltip.bs-tooltip-auto[x-placement^=left] .arrow::before, .tooltip.bs-tooltip-left .arrow::before {
    right: 0;
    margin-top: -3px;
    content: "";
    border-width: 5px 0 5px 5px;

    @include themify($themes) {
        border-left-color: themed('label-count-bg');
    }
}

/* Custom alert tooltips */



.tooltip-alert .tooltip-inner {
    @include themify($themes) {
        background-color: themed('alert')!important;
        color:themed('txtcolor100')!important;
    }  }
  .tooltip-alert.bs-tooltip-top .arrow:before {
    @include themify($themes) {
        border-top-color: themed('alert')!important;
    }
  }
  .tooltip-alert.bs-tooltip-right .arrow:before {
    @include themify($themes) {
        border-right-color: themed('alert')!important;
    }
  }
  .tooltip-alert.bs-tooltip-left .arrow:before {
    @include themify($themes) {
        border-left-color: themed('alert')!important;
    }
  }
  .tooltip-alert.bs-tooltip-bottom .arrow:before {
    @include themify($themes) {
        border-bottom-color: themed('alert')!important;
    }
  }

.alert {
    border:none;
}

.alert-success {
    @include themify($themes) {
        background-color: themed('grassgreen');
    }
    color:#fff;
}

.alert-info {
    @include themify($themes) {
        background-color: themed('warning');
    }
}

.alert-warning {
    @include themify($themes) {
        background-color: themed('alert');
    }
    color:#fff;
}

.icon-stack {
    position: relative;

    i {
        position:absolute;
        display:block;
        padding:0;
        margin:0;
        top:0px;
        left:0px;
    }

    .icon-tri_bg, .icon-cirk_bg {
        color:#fff;
    } 
} 

/* Material form elements */




    .material-input {
      position: relative;
      margin-bottom: 0px;
      display: inline-block;

        &+.sort-arrows {
            transform: translateY(4px);
        }

      input {
        background-color: transparent;
     
      }

      i, .validationIconStackWrapper {
        position:absolute;
        top:0px; 
        right:0px;
       // z-index:9999;
        transform: translate(-8px, 5px);
        &.icon-search {
            transform: translate(-8px, 3px);
        }
    }

      label {
        text-overflow: ellipsis;
        white-space: nowrap; 
    overflow: hidden;
    padding-right:30px;
        @include themify($themes) {
            color: themed('txtcolor100');
        }
  
        font-size: 14px;
        position: absolute;
        pointer-events: none;
        top: 5px;
        left:10px;
        transition: 0.2s ease all;
        width: 100%;
      }

      input:not([type]),
      input[type=text],
      input[type=password],
      input[type=email],
      input[type=url],
      input[type=time],
      input[type=date],
      input[type=datetime-local],
      input[type=tel],
      input[type=number],
      input[type=search] {

        @include themify($themes) {
            color: themed('txtcolor100');
        }

        font-size: 14px;
        padding: 5px 10px;
        position: relative;
        display: block;
        border: none;
        width: 100%;
        //border: 1px solid #d5d5d5;

        @include themify($themes) {
            border: 1px solid themed('trBorderColor');
            background: themed('bodybg');

        }

        &:focus {
          outline: none;
        }

        &:focus + label,
        &:valid + label 
        {
          top: -17px;
          left:0px;
          font-size: 12px;

          @include themify($themes) {
            color: themed('txtcolor2');
        }

        }

        &:focus ~ .bar:before,
        &:focus ~ .bar:after,
        &:valid ~ .bar:before,
        &:valid ~ .bar:after {
          width: 51%;
          
          @include themify($themes) {
            color: themed('trBorderColor');
        }

        border-bottom: 0px;
        }
      }
      
      .bar {
        position: relative;
        display: block;
        width: 100%;
        &:before,
        &:after {
          content: '';
          height: 2px;
          width: 0px;
          position: absolute;
          bottom: 0.5px;

          @include themify($themes) {
            color: themed('trBorderColor');
        }

          transition: 0.2s ease all;
          -moz-transition: 0.2s ease all;
          -webkit-transition: 0.2s ease all;
        }
        &:before {
          left: 51%;
        }
        &:after {
          right: 49%;
        }
        & + label:after {
          display: block;
          content: "";
          position: absolute;
          top: 65px;
          opacity: 0;
          transition: 0.2s opacity ease-out, 0.2s color ease-out;
          -moz-transition: 0.2s opacity ease-out, 0.2s color ease-out;
          -webkit-transition: 0.2s opacity ease-out, 0.2s color ease-out;
        }
      }

      select {
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        -ms-appearance: none;
        background-color: transparent;
        background: url('./svg/common/arrow-down-new.svg') right transparent;
        color: #333;
        font-size: 16px;
        padding: 10px 10px 10px 0;
        position: relative;
        display: block;
        width: 300px;
        border: none;
        border-bottom: 1px solid #d5d5d5;
        border-radius: 0;
        &:focus {
          outline: none;
        }
      }
      select + .icon-arrow-down {
        position: absolute;
        float: right;
      }

      select option:checked + label {
        display: none;
      }

      input[type="radio"] + label {
        pointer-events: all;
      }

      input[type="radio"]:not(:checked),
      input[type="radio"]:checked {
        position: absolute;
        left: -9999px;
      }
      input[type="radio"]:not(:checked) + label,
      input[type="radio"]:checked + label {
        position: relative;
        padding-left: 35px;
        padding-top: 4px;
        cursor: pointer;
        width: 100%;
        display: inline;
      }
      input[type="radio"]:not(:checked) + label:before,
      input[type="radio"]:checked + label:before,
      input[type="radio"]:not(:checked) + label:after,
      input[type="radio"]:checked + label:after {
        content: '';
        position: absolute;
        left: 0;
        top: 2px;
        width: 24px;
        height: 24px;
        transition: 0.2s ease all;
        -moz-transition: 0.2s ease all;
        -webkit-transition: 0.2s ease all;
      }
      input[type="radio"]:not(:checked) + label:before,
      input[type="radio"]:checked + label:before {
        border: 1.5px solid #b9b9ba;
      }
      input[type="radio"]:checked + label:before {
        border: 1px solid #49ba8e;
      }
      input[type="radio"]:not(:checked) + label:before,
      input[type="radio"]:checked + label:before {
        border-radius: 50%;
      }
      input[type="radio"]:not(:checked) + label:after,
      input[type="radio"]:checked + label:after {
        font-size: 9px;
        color: #fff;
        background: #49ba8e;
      }
      input[type="radio"]:not(:checked) + label:after {
        transform: scale(0,0);
      }
      input[type="radio"]:checked + label:after {
        transform: scale(1,1);
      }
      input[type="radio"]:checked + label:after {
        border-radius: 50%;
        width: 16px;
        height: 16px;
        left: 5px;
        top: 7px;
      }

    }


    .btn {
        margin-bottom:10px;
    }

    /* Modals */

    .modal-header {
        @include themify($themes) {
            background-color: themed('navbg');
        }
        border:none;

        h5 {
            font-size:15px;
        }
        button span{
            @include themify($themes) {
                color: themed('txtcolor100');
            }
        }
    }

    .modal-content {
        z-index:9999;
        .modal-body {
            padding:0px;
            @include themify($themes) {
                background-color: themed('bodybg');
            }
        }
    }

    .modal-footer {
        @include themify($themes) {
            background-color: themed('bodybg');
            border-color: themed('trBorderColor');
        }
        .btn {
            margin-bottom:0px;
        }
    }


