/**
 * Copyright (c) 2015 Bosch Software Innovations GmbH and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
// scss-lint:disable ImportantRule, PropertySortOrder

@mixin sp-button-icon-only {
  background: transparent;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-align: center;
  color: $button-icon-color;
}

@mixin sp-button-icon-only-href {
  color: $button-icon-color;
  filter: none;
  opacity: 1;
}

@mixin popup-shadow {
  box-shadow: $popup-box-shadow;
}

// Global Pop Window Definitions
@mixin popup-window {
  .v-window-header {
    color: $widget-caption-color;
    font-weight: 500;
    font-size: $header-caption-font-size;
    text-align: center;
  }

  .v-window-contents {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 10px !important;
  }

  .v-window-outerheader:after {
    border-top: none;
  }

  .confirmation-window {
    .v-window-header {
      text-align: left;
    }
  }

  .v-window {
    @include popup-shadow;
    border-radius: $v-border-radius;
  }

  .v-window-closebox,
  .v-window-maximizebox,
  .v-window-restorebox {
    @include sp-button-icon-only;
  }

  //Display expand icon instead of default plus icon
  .v-window-maximizebox:before {
    content: "\f065";
  }

  //Display compress icon instead of default minus icon
  .v-window-restorebox:before {
    content: "\f066";
  }

  //Display times(cross) icon as popup close icon
  .v-window-closebox:before {
    content: "\f00d";
  }

  .v-window-restorebox:hover,
  .v-window-closebox:hover {
    @include sp-button-icon-only-href;
  }

  .v-slot-dist-window-maintenance-window-enable {
    padding-left: 9px;
    padding-top: 5px;
    padding-right: 5px;
    font-weight: 400;
  }

  .dist-window-maintenance-window-layout {
     vertical-align: middle;
     horizontal-align: middle;
     padding-left: 14px;

    .v-slot {
      vertical-align: middle;
      padding-right: 20px;
    }

    .v-caption {
      vertical-align: middle;
      margin-top: 0;
    }

    .v-filterselect {
      font-weight: 400;
      width: 160px;
    }

    .v-textfield {
      font-weight: 400;
      width: 160px;
    }
  }

  ///force,soft,time forced radio button styles - start**
  .dist-window-actiontype-horz-layout {
    padding-bottom: 15px;

    .dist-window-forcedtime {
      width: 185px;
      height: 24px;
    }

    .v-expand,
    .v-slot {
      vertical-align: middle;
      height: 0;
    }

    .v-slot {
      vertical-align: middle;
      padding-left: 8px;
      padding-right: 5px;
    }

    .v-caption {
      vertical-align: middle;
    }

    .v-radiobutton {
      padding-right: 0 !important;
      margin-right: -15px !important;
    }

    .v-icon {
      color: $hawkbit-primary-color;
    }
  }

  .v-caption-padding-right-style {
    padding-right: 25px !important;
    padding-left: 0 !important;
  }

  //force,soft,time forced radio button styles - end
  //Target update window specific style, since the label '*Mandatory Field' is
  // removed, as controller id is read only********** */
  .target-update-window {
    padding: 0 16px 0 0;
  }

  .margin-top-style {
    margin-top: 10px !important;
  }

  //confimation dialogue popup - Content margin adjustment
  .confirmbox-question-label {
    margin: 0 8px 8px;
  }
  
  .bulk-upload-button{
  	font-size: $v-font-size--small;
  	height: 38px !important;
  }

  .bulk-target-tags-layout{
  	border-left: 1px solid #bfc3c8;
  	border-right: 1px solid #bfc3c8;
  	border-bottom: 1px solid #bfc3c8;
  	border-radius: 4px;
  }
  .bulk-upload-ds-combo{
  	margin-top: 2px !important;
  }  
  
  .v-slot-bulk-upload-label{
  	line-height:0;
  }
  
  .actionButtonsMargin {
  	margin-top: 30px;
  	margin-bottom: 10px;
  }
  
  .v-window-no-closebox .v-window-closebox:before { 
    height: 0px !important;
    content: "" !important;
   }
}
