/* Copyright CloudLinux Zug GmbH 2010-2017 All Rights Reserved
 *
 * Licensed under CLOUD LINUX LICENSE AGREEMENT
 * http://cloudlinux.com/docs/LICENSE.TXT
 */
@import "../../styles/colors";
@import "../../styles/variables";
@import "../../styles/icons";
@import "../../styles/mixins";
@leftNodeJSMenuPadding: 65px;
@rightNodeJSMenuPadding: 15px;

/deep/ #content {
    position: relative;
}

:host /deep/ {
    .tabs-header li {
      cursor: pointer;
    }

    .tab-add-icon {
      .add-icon(#1a1a1a);
      height: 20px;
      width: 20px;
      margin-right: 3px;
      display: inline-block;
      vertical-align: text-bottom;
    }
    .tab-edit-icon {
      .edit-icon(#B5BBC1);
      height: 16px;
      width: 16px;
      margin-right: 7px;
      display: inline-block;
    }

    button[disabled]{
      opacity: 0.5;
      cursor: not-allowed;
    }

    .column_for_value{
      min-width: 150px;
    }

    .selector_dropdown span.open ul{
      margin-top: 10px;
    }

    input.form-control{
      color: #000;
    }

    a>img {
      vertical-align: inherit;
    }

    .selector_dropdown .save_php_status, .selector_dropdown .cancel_php_status{
      padding-left: 20px !important;

    }

    .selector_dropdown .save_php_status button, .selector_dropdown .cancel_php_status button{
      margin: 0;
    }

    .selector_dropdown span.open ul{
      margin-top: 10px;
    }


    .status_icon svg{
      margin-top: 11px;
    }

    .selector_dropdown .save_php_status, .selector_dropdown .cancel_php_status{
      padding-left: 20px !important;

    }

    .selector_dropdown .save_php_status button, .selector_dropdown .cancel_php_status button{
      margin: 0;
    }

    #doctitle h1 img{
      top: 0 !important;
    }

    .actions button{
      margin: 4px;
    }

    .row{
      margin-left: 0;
      margin-right: 0;
    }

    .config_grid_wrapper{
      padding: 0;
    }

    .cl-btn-group{
      margin-right: 4px;
    }

    .with_selected_filter button{
      margin-left: 0px;
      margin-right: 6px;
    }

    .status_confirm_wraper{
      box-shadow: 0 7px 24px 0 rgba(0, 0, 0, 0.32);
    }
    .Cpanel_ .pagination>.active>a,
    .Cpanel_ .pagination>.active>a:focus,
    .Cpanel_ .pagination>.active>a:hover,
    .Cpanel_ .pagination>.active>span,
    .Cpanel_ .pagination>.active>span:focus,
    .Cpanel_ .pagination>.active>span:hover {
      background-color: #428BCA;
      border-color: #428BCA;
      color: #fff;
    }
    .Cpanel_ .pagination>li>a,
    .Cpanel_ .pagination>li>span {
      color: #428BCA;
    }
    .Cpanel_ .pagination>li>a:focus,
    .Cpanel_ .pagination>li>a:hover,
    .Cpanel_ .pagination>li>span:focus,
    .Cpanel_ .pagination>li>span:hover {
      color: #428BCA;
      background-color: #eee;
      border-color: #ddd;
    }

    label[for=mysqlHide] span {
      margin-top: 10px !important;
    }

    .selector_dropdown .status_icon {
      margin-top: 13px;
    }

    .pageTitle h1, #doctitle h1 {
      margin-bottom: 45px;
      font-family: 'Noto Sans', sans-serif;
      color: #1d1d1d;
      font-size: 22px;
    }

    .pageTitle h1 img, #doctitle h1 img {
      height: 70px;
      width: 70px;
    }

    .toggle_expand_open .plus {
      line-height: 50px;
    }

    .toggle_expand_close .plus{
      line-height: 30px;
    }

    #history_modal {
      margin-top: 100px;
    }

    @media (max-width: 1153px) {
      modal_stats td, modal_stats th, .stats_block td, .stats_block th {
        padding: 8px 3px !important;
      }
    }

    a em{
      font-style: normal;
    }

    .logo_header{
      margin-bottom: 45px;
      font-family: @notoFont;
      color: #1d1d1d;
      font-size: 22px;

      span {
        height: 70px;
        width: 70px;
        vertical-align: middle;
        margin-right: 15px;
        display: inline-block;
        background-image: data-uri('image/svg+xml;charset=utf-8', '../../assets/images/node.svg');
      }
    }

    .tabs-header{
      text-transform: uppercase;
      margin-bottom: 30px;
      padding-top: 10px;

      ul{
        list-style: none;
        padding-left: 0;

        li{
          float: left;
          margin-right: 40px;
          height: 30px;

          a{
            font-family: @notoFont;
            font-size: 16px;
            color: #1d1d1d;
            text-decoration: none;
            outline: none;
            background: transparent !important;
            border: none;
            transition: color 0.15s;

            &:hover{
              color: @mainColor;
              text-decoration: none;
            }
          }

          &:last-child{
            margin-right: 0;
          }

          &.active{
            border-bottom: 4px @mainColor solid;
          }
        }

        .clearboth;
      }
    }

      .fixed-tabs-header {
          position: absolute;
          top: 0;
          z-index: 100;
          div {
              position: fixed;
              max-width: 1500px;
              width: 100%;
              padding-right: @leftNodeJSMenuPadding + @rightNodeJSMenuPadding;
              ul {
                  box-shadow: 2px 0 0 white, -2px 0 0 white;
                  background: white;
                  margin-top: -32px;
                  padding-top: 32px;
                  padding-bottom: 10px;
                  border-bottom: 1px solid #ddd;
              }
          }
      }

      .fixed-tabs-header-da {
          > div {
              width: 1362px;
          }
      }

      @media (max-width: 769px) {
          .fixed-tabs-header:not(.fixed-tabs-header-da) {
              > div {
                  width: ~"calc(100% + @{leftNodeJSMenuPadding} - @{rightNodeJSMenuPadding} )";
              }
          }
      }
  }

/deep/ html {
    &[data-style="retro"],
    &[data-style="light"],
    &[data-style="dark"] {
        #content {
            margin-top: 32px !important;
        }
        #tabHeaderFixed.fixed-tabs-header > div {
            padding-right: 120px !important;
        }
    }

    &[data-style="light"],
    &[data-style="dark"] {
        @media (max-width: 992px) {
            .fixed-tabs-header:not(.fixed-tabs-header-da) {
                > div {
                    width: ~"calc(100% + 20px)" !important;
                }
            }
        }
        @media (max-width: 770px) {
            .fixed-tabs-header:not(.fixed-tabs-header-da) {
                > div {
                    width: ~"calc(100% + 80px)" !important;
                }
            }
        }
    }

    &[data-style="retro"] {
        #content {
            position: static !important;
        }
        #tabHeaderFixed.fixed-tabs-header {
            div {
                max-width: 833px;
            }
        }
        .tabs-header {
            .nav-ul {
                li:last-child {
                    margin-top: 10px;
                }
            }
        }
        .btn-default, .btn-primary {
            background-image: none;
            padding: 1px 6px;
            font-size: 13px !important;
            &:hover, &:focus {
                background-image: none;
                padding: 1px 6px;
                &.size-normal {
                    padding: 1px 6px;
                }
                &.size-medium {
                    padding: 0 14px;
                }
                &.size-large {
                    padding: 0 40px;
                }
            }
        }
        .control-buttons {
            button {
                &:focus, &:hover {
                    padding: 0 19px !important;
                }
            }
        }
        .row-wrapper {
            .title-wrapper .control-wrapper {
                width: calc(~"100% - 90px");
            }
            .description {
                width: 200px !important;
            }
        }
        .npmRunInstall {
            flex-direction: column;
            .npmWarningMessage {
                margin-left: 0;
                .triangle-position-top-left:after {
                    content: none;
                }
            }
        }
        .m-l-5 {
            margin-left: 0;
        }
        #runScriptModalButton {
            margin-top: 5px;
        }
    }
}
