@import "./values";

.page-container {
  height: 100%;
}

.page {
  height: auto;
  min-height: 100%;
}

.site-menu-item a {
  position: relative;
}

body {
  overflow-y: hidden;
  padding-top: 0 !important;
}

li {
  list-style: none;
}

.customBody {
  padding-top: 60px;
  transition: padding-top 300ms;
}

.customBody .site-page {
  height: ~"calc(100vh - 100px)";
  height: ~"-webkit-calc(100vh - 100px)";
}

.customBody.site-contabs-open .site-page {
  height: ~"calc(100vh - 140px)";
  height: ~"-webkit-calc(100vh - 140px)";
}

@media (max-width: 767px) {
  .customBody {
    .site-page {
      height: ~"calc(100vh - 60px)" !important;
      height: ~"-webkit-calc(100vh - 60px)" !important;
    }
    &.site-navbar-collapse-show {
      padding-top: 120px;
      .site-page {
        height: ~"calc(100vh - 120px)" !important;
        height: ~"-webkit-calc(100vh - 120px)" !important;
      }
    }
  }
}

//滚动条样式重写
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track-piece {
  border: none;
  background-color: #f5f5f5
}

::-webkit-scrollbar-thumb {
  width: 6px;
  height: 6px;
  background: #CBCBCB;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: @default-color;
}

.animation-fade {
  animation-duration: 0.4s !important;
}

modal-overlay {
  user-select: none;
  .confirmLayer {
    width: 350px;
    position: absolute;
    left: 50%;
    margin-left: -175px;
    top: 35%;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);

    &.primary {
      .modal-title {
        background-color: @default-color;
      }
    }

    .modal-content {
      border-top-left-radius: 5px;
      border-top-right-radius: 5px;
    }

    .modal-header {
      padding: 0;
      background-color: transparent;
    }

    .modal-title {
      height: 45px;
      line-height: 45px;
      padding: 0 10px;
      font-family: @default-font-family;
      font-size: 15px;
      background-color: @red-color;
      border-top-left-radius: 5px;
      border-top-right-radius: 5px;
      color: #fff;
    }
    .modal-body {
      padding: 10px;
      min-height: 70px;
      font-size: 15px;
      word-break: break-all;
      p {
        margin-bottom: 0 !important;
      }
    }
    .modal-footer {
      border-top: 1px solid rgba(34, 36, 38, .1);;
      padding: 7px;
      text-align: right;
      button:first-child {
        margin-right: 15px;
      }
    }
  }
  .modal.fade .confirmLayer {
    transition: transform 200ms ease-out;
    transform: scale(0.5, 0.5);
  }
  .modal.in .confirmLayer {
    transform: scale(1, 1);
  }
}

.htmlEditor {
  .note-editor {
    border: 1px solid #e4eaec;
  }
  .panel-default {
    font-size: 0;
    .panel-heading {
      background-color: #f1f4f5;
    }
    .btn-default {
      background-color: #f1f4f5;
      border: none;
    }
  }
}

.site-contabs-open .site-contabs .contabs-scroll .con-tabs > li {
  min-width: 7.5em;
  width: auto !important;
}

.datepiacker {
  position: relative;
  z-index: 1;
}

.table {
  td, th {
    vertical-align: middle !important;
  }
}

.checkbox-custom {
  white-space: nowrap;
}

.ngx-datepicker-container {
  position: absolute !important;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.ngx-datepicker-input {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  cursor: pointer;
}

.treegrid-indent {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  color: #a3afb7;
}
.treegrid-expander {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  color: #a3afb7;
  cursor: pointer;
}
menu{
  list-style: none;
  padding: 0;
  margin: 0;
}