.fr { float: right; }
.fl { float: left; }

.pointer, [ng-click]:not(.nopointer) {
  cursor: pointer;
}
.fa-question-circle-o, fa-question-circle {
  cursor: help;
}

.table-fixed {
  table-layout: fixed;
}

.custom-scrollbar {
  overflow-y: overlay!important;

  &:not(:hover)::-webkit-scrollbar {
    width: 0;
  }

  &::-webkit-scrollbar {
    width: 8px;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(0, 0, 0, .75);
  }
}

.input-group.use-flex {
  display: flex;

  .input-group-btn, .form-control, .input-group-addon {
    display: block;
    width: initial;
  }

  select.input-group-addon {
    -moz-appearance: none;
    -webkit-appearance: none;
    padding: 0 12px;
  }

  .form-control {
    flex: 1;
  }
}

.fa-icon-right { margin-left: 5px; }
.fa-icon-left { margin-right: 5px; }

.fa-question-circle-o { color: var(--global-theme-color-light, #00C2B1); }

.tab-content {
  background-color: white;
  padding: 3px;
}

.table-format-list {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;

  thead {
    background: linear-gradient(to bottom, #FFF, #F3F3F3);
    line-height: 30px;
  }

  &.msize {
    thead {
      background: var(--global-tableFormatListThead-msize-bgImage, linear-gradient(to bottom, #FFF, #F3F3F3));

      th {
        color: var(--global-tableFormatListThead-msize-color, #555);
      }
    }
  }

  th {
    font-weight: bold;
    padding: 0 10px;
    min-width: 50px;
    color: #555;
    font-size: 12px;
    border: 1px solid #E7E7E7;
    border-right: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    .fa {
      color: var(--global-theme-color-light, #888);
    }

    &.sortable {
      cursor: pointer;
    }

    &:last-child {
      padding-right: 42px;
      border-right: 1px solid #E7E7E7;
    }
  }

  tbody {
    tr {
      height: 28px;

      td {
        border-top: 1px solid #E7E7E7;

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

      &:first-child {
        td {
          border-top: 1px solid white;
        }
      }

      &:last-child {
        td {
          border-bottom: 1px solid #E7E7E7;
        }
      }
    }
  }

  td {
    font-size: 11px;
    padding: 5px 10px;
    max-width: 100px;
    min-width: 50px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #383838;
  }
}

.eTooltipCircle {
  display: inline-block;
  margin-right: 5px;
  border-radius: 10px;
  width: 9px;
  height: 9px;
}

.next-step {
  text-align: center;
  margin-top: 15px;
}

:root .popover {
  font-family: inherit;
  max-width: initial;
}

.welcome {
  padding: 20px;

  header {
    line-height: 35px;
  }

  li {
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 15px;
    padding-top: 15px;
    position: relative;

    &:first-child {
      padding-top: 0;
    }

    &:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }
  }

  .operate {
    position: absolute;
    right: 0;
    height: 100px;
    top: 15px;
    width: 50%;

    > div {
      width: 30%;
      float: left;
      text-align: center;
      cursor: pointer;
    }
  }
}

.font-m { font-size: 20px; }
.font_w_b { font-weight: bold; }
.font-ss { font-size: 11px; }

.red { color: var(--pageWarning-critical-color, #FF8C8C) !important; }
.green { color: var(--global-green-statusColor, #00C2B1) !important; }
.gray { color: #A6A29D !important; }
.yellow { color: #FFE97B !important; }
.orange { color: orange !important; }

.filter-list-header {
  display: flex;
  align-items: center;

  > input {
    flex: 1;
  }

  > :not(:last-child) {
    margin-right: 12px;
  }
}

.form-control.ng-touched { /* Copied from bootstrap.css */
  &.ng-invalid {
    border-color: #D96557;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);

    &:focus {
      border-color: #CE402F;
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ECB1AA;
    }

    + .input-group-addon {
      color: white;
      border-color: #D96557;
      background-color: #D96557;
    }
  }

  .input-form &.ng-valid.ng-not-empty {
    border-color: #2ECC71;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);

    &:focus {
      border-color: #25A25A;
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #7EE2A8;
    }

    + .input-group-addon {
      color: white;
      border-color: #2ECC71;
      background-color: #2ECC71;
    }
  }
}

select.input-xs {
  padding: 0;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  border-radius: 3px;
}

.ui-popup {
  font: inherit !important;
}

[vertical="true"] {
  /*Suppose it to be a vertical aligned tabset*/
  display: flex;

  .nav-stacked {
    width: auto;
    flex-shrink: 0;
    border-bottom: 0 !important;
    border-right: 1px solid #ECF0F1;

    > li > a {
      margin-right: -1px;
      margin-bottom: 2px;
      border-radius: 4px 0 0 4px;

      &:hover {
        border-color: #EEE #DDD #EEE #EEE;
      }
    }

    > li.active > a {
      border: 1px solid #ECF0F1;
      border-right-color: transparent;
    }

    &.nav-pills {
      border-right: 0;

      > li > a {
        margin-right: 4px;
        border: 0 !important;
        border-radius: 4px;
      }
    }
  }

  .tab-content {
    flex: 1;
    margin-left: 6px;
  }
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-pill {
  display: inline-block;
  color: var(--global-theme-color-light, #00C2B1);
  box-shadow: none !important;

  &:hover {
    background-color: rgba(0, 0, 0, .05);
    text-decoration: none;
    border-radius: 4px;
    color: #0F8480;
  }
}

.uib-day .active .text-info {
  color: inherit;
}

/*
 * Callouts
 *
 * Not quite alerts, but custom and helpful notes for folks reading the docs.
 * Requires a base and modifier class.
 */

/* Common styles for all types */
.bs-callout {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #EEE;
  border-left-width: 5px;
  border-radius: 3px;

  h4 {
    margin-top: 0;
    margin-bottom: 5px;
  }

  p:last-child {
    margin-bottom: 0;
  }

  code {
    border-radius: 3px;
  }

  /* Tighten up space between multiple callouts */
  + .bs-callout {
    margin-top: -5px;
  }

  &-danger {
    border-left-color: #CE4844;

    h4 {
      color: #CE4844;
    }
  }

  &-warning {
    border-left-color: #AA6708;

    h4 {
      color: #AA6708;
    }
  }

  &-info {
    border-left-color: #1B809E;

    h4 {
      color: #1B809E;
    }
  }
}

ng-transclude, [ng-transclude] {
  &:not(.always-show):empty {
    display: none;
  }
}

.text-pre { white-space: pre; }
.text-pre-wrap { white-space: pre-wrap; }

.panel-heading.with-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 10px 15px;

  &::before, &::after {
    content: none;
  }
}

a, .a-link {
  color: #4a90e2;
  text-decoration: none;
}

.a-normal {
  color: inherit;
  transition: color .1s;

  &:hover {
    color: #4a90e2;
  }
}

.glyphicon {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  &-chevron {
    &-left::before {
      content: "\f053";
    }

    &-right::before {
      content: "\f054";
    }

    &-up::before {
      content: "\f077";
    }

    &-down::before {
      content: "\f078";
    }
  }
}

[uib-daypicker] {
  table {
    table-layout: fixed;
    width: 100%;
  }

  th {
    width: 12.5%;

    &[colspan="6"] {
      width: 75%;
    }

    button {
      height: 30px;
    }
  }
}

.panel-heading {
  &::before, &::after {
    content: none;
  }
}

.box-tab {
  background: white;
  border-radius: 3px;
  margin: 0;

  &.main-content {
    margin: 0;
  }

  .nav-tabs {
    border-bottom: 1px solid #eee;

    > .uib-tab {
      position: relative;

      a {
        transition: .2s all;

        &::before {
          content: none;
        }
      }

      &::after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 3px;
        background: var(--global-theme-color-light, #00C8C1);
        transform: scale(0);
        transform-origin: center bottom;
        transition: .2s transform;
      }

      &.active, &.active:hover {
        a {
          font-weight: bold;
        }

        &::after {
          transform: none;
        }
      }
    }
  }
}

.btn-upload {
  display: inline-block;
  color: var(--global-theme-color-light, #03BDB4);
  padding: 6px 0;
  width: 98px;
  text-align: center;
  border: 1px solid var(--global-theme-color-light, #03BDB4);
  border-radius: 4px;
  margin: 0;

  .fa {
    margin-right: 7px;
  }

  input[type=file] {
    width: 0;
    height: 0;
    border: 0;
    font-size: 0;
    background: none;
    display: none;
  }
}

.help-block {
  color: red;
}

.box {
  height: 100%;
  background: rgba(0,0,0, .02);
  border: 1px solid #EBF1F1;
  border-radius: 3px;

  &-header {
    padding: 0 12px 0 10px;
    cursor: move;
    height: 36px;
    display: flex;
    align-items: center;

    h3 {
      font-size: 16px;
      margin: 6px 0;
      flex: 1;
      color: #616161;
    }

    &-btns a {
      color: #CCC;
      font-size: 16px;
    }
  }

  &-content {
    height: calc(100% - 36px);
    padding: 5px;
  }
}

.disabled {
  color: #A6A29D !important;
  pointer-events: none;
}

.panel-custom {
  border: 1px solid var(--global-theme-color-light, #00C8C1);

  > .panel-heading {
    background-image: linear-gradient(to top, #F3F3F3, white);
    border-bottom: 1px solid var(--global-theme-color-light, #00C8C1);
    padding: 8px 12px;
  }
}

.textarea-box {
  position: relative;

  div {
    line-height: 29px;
    visibility: hidden;
    min-height: 34px;
    max-height: 200px;
    padding: 0 12px;
  }

  .textarea {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-height: 200px;
    width: 100%;
    resize: none;
    overflow: hidden;
    padding: 0 12px;
    line-height: 29px;
  }
}

.dropdown-menu > li.active a {
  &, &:hover {
    color: white;
    background-color: var(--global-theme-color-light, #00c8c1);
    border-color: #00B8B1;
  }
}

.main-content {
  background: white;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  border-radius: 3px;

  &:not(.box-tab) {
    padding: 15px;
  }
}

.search-input {
  margin-bottom: 15px;
}

.dropdown-menu {
  z-index: 99999;
}

.list-group {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: solid 1px #D5D5D5;

  thead {
    background: var(--pageWarning-trHover-bgColor, linear-gradient(to bottom, #FFF, #F3F3F3));
    line-height: 35px;
    color: gray;
    font-size: 13px;
    font-weight: normal;

    tr {
      border: 1px solid #D5D5D5;
    }

    th {
      padding: 0 10px;
    }
  }

  tbody {
    tr {
      border-bottom: solid 1px #D5D5D5;
      td {
        height: 36px;
        font-size: 11px;
        padding: 0 10px;
        max-width: 0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        a {
          text-decoration: none;
          color: #1f6b7a;
        }
      }
    }

    .list-group-no-results {
      td {
        font-size: 14px;
        text-align: center;
        color: #383838;
      }
    }
  }
}

isteven-multi-select {
  position: relative;

  .multiSelect {
    > button {
      min-height: 22px !important;
      min-width: 110px;
      padding: 0 4px 0 0;
      border-radius: 2px;
      font-size: 12px;
      outline: none;

      .buttonLabel {
        padding: 0;
      }
    }

    .helperButton {
      padding: 0 4px;
    }

    .multiSelectItem:not(.multiSelectGroup).selected {
      background-image: linear-gradient( #F8F8F8,#F0F0F0 );
    }
  }
}

.partition-num {
  flex: none !important;
  width: 100px;
  margin-right: 10px;
}

.collection-tip-color {
  color: #00C8C1 !important;
}

.day-data {
  padding-left: 60px;
}

.remark {
  padding: 0 25px;
}

.modal-smaller {
  width: 480px;
}

.font-with-icon {
  font-family: FontAwesome, -apple-system, system-ui, "Pingfang SC", "Segoe UI", "Helvetica Neue", Verdana, Arial, STHeiti, "Microsoft Yahei", sans-serif;
}

.tooltip-button {
  height: 38px;
  color: var(--global-theme-color-deep, #04beb4);
  border: 2px solid #ecf0f1;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  width: 42px;
  background-color: white;
  outline: none;
  border-radius: 0;
  font-size: 16px;

  &:disabled {
    color: lightgray;
  }

  &:not(:disabled):hover {
    color: var(--global-theme-color-deep, #298fa3);
    text-decoration: none;
    background-color: #ecf0f1;
  }

  &.last-button {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-right: 2px solid #ecf0f1;
    border-left: 2px solid #ecf0f1;
  }
}

.form-control.form-normal-width {
  display: inline-block;
  width: auto;
}

/* 重置输入框的样式 */
.input-border {
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 0;
  width: 100%;
  height: 25px;
  margin-top: 5px;

  &:focus {
    outline: none;
  }

  &.ng-touched.ng-invalid {
    border-bottom: 1px solid #D96557;
  }

  &:disabled {
    border: none;
    color: #CFCFCF;
    background-color: white;
  }

  &::placeholder {
    color: #CFCFCF !important;
    font-size: 13px !important;
  }
}

/* 标题一 */
.title-box-1 {
  font-size: 15px;
  color: #747474;
  padding: 5px 10px;
  margin-bottom: 15px;
  letter-spacing: 0;
  background-image: linear-gradient(-90deg, #FFFFFF 0%, #F6F6F6 100%);
}

/* 标题二 */
.title-box-2 {
  display: flex;
  align-items: center;
  margin-left: 40px;
  margin-bottom: 20px;

  &::before {
    content: attr(x-step);
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    color: white;
    background: #00C8C1;
    text-align: center;
    line-height: 15px;
    margin-right: 5px;
  }

  &::after {
    content: "";
    border-top: 1px solid #E3E3E3;
    margin-left: 5px;
    flex: 1;
  }
}

.required-icon {
  display: inline-block;
  width: 7px;
  margin-right: -7px;
  position: relative;
  top: -6px;
  right: 3px;
  color: #D15F66;

  &::after {
    content: '*';
  }
}

.modal-dialog-middle {
  .modal-dialog {
    margin-top: 120px;
  }
}
