@import '~amos-framework/lib/styles/mixins/scrollbar.scss';

$scrollOutColor: rgba(#dedede, 0.3);
$scrollInnerColor: rgba(black, 0.1);

.ccs-vediodetails-pane {
  width: 100%;
  height: 100%;
  background-color: #0c497e;

  .ccs-vediodetails-pane-top {
    height: 160px;
  }

  .ccs-vediodetails-pane-img {
    padding: 20px 0 14px 29px;

    img {
      max-width: 50px;
    }
  }

  .ccs-vediodetails-pane-name {
    padding-left: 26px;
    font-size: 12px;
    font-weight: bold;
    color: #047474;
  }

  .ccs-vediodetails-pane-form {
    padding-left: 26px;
    margin-top: 10px;
  }

  .ccs-vediodetails-equiplist {
    height: calc(100% - 160px);
    padding-top: 12px;

    .amos-tabs.amos-tabs-top {
      width: 100%;
      height: 100%;
      padding: 0;

      > .amos-tabs-list {
        display: flex;
        height: 35px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-top: 1px solid #1f5383;
        border-bottom: 1px solid #1f5383;

        .amos-tabs-tabitem {
          flex: 1;
          display: flex;
          align-items: center;
          justify-content: center;
          border-right: 1px solid #1f5383;

          &::before {
            display: none;
          }

          .amos-tabs-tabitem-inner {
            position: relative;
            display: inline-block;
            height: 32px;
            padding: 0 5px;
            font-size: 12px;
            line-height: 32px;
            color: white;
            border-radius: 0;

            &::before {
              position: absolute;
              bottom: -1px;
              left: 50%;
              width: 0;
              border-bottom: 2px solid #345fa6;
              content: '';
              transition: all 0.2s ease-in-out;
            }
          }

          &.amos-tabs-tabitem-active {
            color: red;

            .amos-tabs-tabitem-inner {
              &::before {
                left: 0;
                width: 100%;
              }
            }
          }
        }
      }

      > .amos-tabs-panel {
        @include pretty-scrollbar(5px, 8px, $scrollOutColor, $scrollInnerColor);

        height: calc(100% - 90px);
        padding: 8px;
        overflow: auto;
      }

      > .ccs-vediodetails-equiplist-button {
        padding-top: 10px;
        text-align: center;
      }
    }
  }

  .ccs-vediodetails-equiplist-item {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.8;
    color: white;
    border: solid 1px #1f5383;

    .ccs-vediodetails-equiplist-title {
      margin-bottom: 4px;
      font-weight: bold;
      color: white;
    }
  }
}


%scrollbar {
  @include pretty-scrollbar(
    4px,
    4px,
    #2e7ab9,
    #0febff,
    2px
  );
}

.ccs-video-monitor,
.ccs-on-video-monitor {
  display: flex;
  width: 100%;
  height: 100%;

  &-left {
    width: 20%;
    height: 100%;
    padding-left: 8px;
    padding-bottom: 10px;

    &-map {
      position: relative;
      width: 100%;
      height: 100%;
      background: none;
      border-image: url('../../assets/frame/data-bg.png') 50 50 50 50 fill / 50 50 50 50 / 0 stretch stretch;
      border-style: solid;
      border-width: 1px;
      border-radius: 0;

      .mod-com-firetree {
        padding: 15px;
        background-color: transparent;

        .mod-com-firetree-header {
          padding: 0;
          background: transparent;

          .amos-input {
            border: 1px solid #65c1f7;
            height: 37px;
            color: white;
            background: transparent;
            box-shadow: 0px 0px 16px 2px rgba(77,170,224,0.60) inset;
          }

          .eb-com-btn {
            height: 37px;

            .eb-btn-conent:first-child {
              height: 37px;
              border: 1px solid #65c1f7;
              background: transparent;
            }
          }

        }

        .mod-com-firetree-content {
          background: transparent;
        }
      }
    }

    .ccs-com-screencard {
      height: 100%;
      margin-bottom: 10px;

      .mod-com-firetree {
        padding: 15px;
        background-color: transparent;

        .mod-com-firetree-header {
          padding: 0;
          background: transparent;

          .amos-input {
            border: 1px solid #65c1f7;
            height: 37px;
            color: white;
            background: transparent;
            box-shadow: 0px 0px 16px 2px rgba(77,170,224,0.60) inset;
          }

          .eb-com-btn {
            height: 37px;

            .eb-btn-conent:first-child {
              height: 37px;
              border: 1px solid #65c1f7;
              background: transparent;
            }
          }

        }

        .mod-com-firetree-content {
          background: transparent;
        }
      }
    }
  }

  &-right {
    width: 80%;
    height: 100%;
    padding-right: 8px;
    padding-bottom: 10px;

    .ccs-com-screencard {
      height: 100%;
      margin-bottom: 10px;
    }

    &-map {
      position: relative;
      width: 100%;
      height: 100%;
      background: none;
      border-image: url('../../assets/frame/data-bg.png') 50 50 50 50 fill / 50 50 50 50 / 0 stretch stretch;
      border-style: solid;
      border-width: 1px;
      border-radius: 0;
    }
  }
}

.ccs-com-screencard-header {
  display: flex;
  align-items: center;
  // width: 60%;
  height: 60px;
  padding-left: 0.6vw;
  overflow: hidden;
  font-size: 1.02vw;
  font-weight: bold;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;

  > span {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .amos-search {
    flex: 1;
    position: relative;
    top: -8px;
    height: 20px;
    min-width: 0;
    margin-right: 3px;
    margin-left: 60px;

    input {
      width: 100%;
      height: 100%;
      color: white;
      background: rgba(15, 235, 255, 0.2);
      border-radius: 10px;
    }

    i {
      display: inline-block;
      align-items: center;
      height: 100%;
      font-size: 12px;
    }
  }
}

.ccs-com-firepanal {
  width: 100%;
  height: 100%;
  padding-top: 1%;

  &-header {
    width: 100%;
    height: 40px;
  }

  &-rightbtns {
    float: right;
    padding-right: 20px;

    .modcom-matrixpagination {
      padding-right: 10px;

      .modcom-matrixpagination-btngroup .modcom-matrixpagination-pagenum input {
        color: #65c1f7;
      }
    }

    .modcom-matrixpagination .modcom-matrixpagination-btngroup .modcom-matrixpagination-btn {
      background-color: #044c83;
      border: 1px solid #6fc2e2;
    }

    .modcom-matrixpagination .modcom-matrixpagination-btngroup .modcom-matrixpagination-pagenum {
      background-color: #143c70;
      border: 1px solid #6fc2e2;

      label {
        color: white;
      }

      span {
        color: white;
      }
    }

    .modcom-matrixpagination .modcom-matrixpagination-btngroup .modcom-matrixpagination-btn.modcom-matrixpagination-btn-active,
    .modcom-matrixpagination .modcom-matrixpagination-btngroup .modcom-matrixpagination-btn:hover {
      background-color: #143c70;
      border-color: #6fc2e2;
    }

    .modcom-matrixpagination .modcom-matrixpagination-btngroup>span {
      color: white;
    }
  }

  &-content {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);

    .amos-sidepane {
      height: 100%;
      z-index: 200;

      .eb-com-filter-pane {
        background: #0c497e;

        .eb-com-filter-pane-title {
          height: 34px;
          padding: 0 2em;
          background: linear-gradient(180deg, rgba(154, 203, 251, 0.24) 0%, rgba(225, 238, 255, 0.36) 54%, rgba(157, 183, 223, 0.1) 54%, rgba(63, 117, 209, 0) 100%);
          border: 0;
          border-radius: 4px 4px 0 0;
          box-shadow: inset 0 0 18px 0 rgba(111, 194, 226, 0.67);

          span {
            height: 100%;
            font-size: 16px;
            line-height: 34px;
            color: white;
          }

          img {
            background: linear-gradient(180deg,rgba(15,235,255,0.00), rgba(15,199,255,0.52) 100%, rgba(15,199,255,0.70) 100%, rgba(15,235,255,0.00) 100%, rgba(15,235,255,0.12) 100%);
            border: 1px solid #65c1f7;
            box-shadow: 0px 0px 8px 4px rgba(77,170,224,0.80) inset;
          }
        }

        .amos-form-item-field {
          color: white;
        }

        .amos-form-item-control {
          .amos-input {
            width: 100%;
            background-color: rgba(0,53,88,.6);
            border: 0;
            color: white;
          }
        }
      }
    }
  }
}

.ccs-disaster-video-header {
  width: 100%;
  height: 42px;

  span {
    color: white;
  }

  .modcom-matrixpagination .modcom-matrixpagination-btngroup > span {
    color: white;
  }

  .modcom-matrixpagination .modcom-matrixpagination-btngroup .modcom-matrixpagination-btn {
    background-color: #044c83;
    border-color: solid 1px #6fc2e2;
  }

  .modcom-matrixpagination .modcom-matrixpagination-btngroup {
    margin-left: 0;
  }

  .modcom-matrixpagination .modcom-matrixpagination-btngroup .modcom-matrixpagination-pagenum {
    color: white;
    background: #044c83;
    border-left: 0;
    border-color: #6fc2e2;

    input {
      color: white;
    }
  }

  .modcom-matrixpagination-btngroup {
    margin-right: 20px;

    .modcom-matrixpagination-btn {
      border-color: #6fc2e2;
    }

    .modcom-matrixpagination-btn + .modcom-matrixpagination-btn-last {
      border-radius: 0 4px 4px 0;
    }
  }
}
