
#wp-statistics-post-visitors-widget{
  .inside{
    .inside{
      padding: 0;
      margin: 0;
    }
    .c-footer{
      display: none;
    }
    .o-wrap--no-data{
      padding: 15px !important;
      text-align: center;
    }
    .o-table.wps-new-table{
      width: 100%;
      border-collapse: collapse;
    }
    .o-table-wrapper{
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: thin;
      scrollbar-color: rgb(218, 220, 224) rgb(250, 250, 251);
    }
  }

  thead{
    th{
      font-weight: 400;
      font-size: 13px;
      line-height: 16px;
      border-bottom: 1px solid #eeeff1;
      text-align: left;
      padding-bottom: 12px;

      .rtl &{
        text-align: right;
      }
    }
  }
  tbody{

    tr:nth-child(even) td{
      background-color: #fafafb;
    }

    td{
      padding-top: 12px;
      padding-bottom: 12px;
      a{
        text-decoration: none!important;
      }
    }
  }
}


#wp-statistics-post-visitors-locked-widget{
  .wps-admin-pages-component__preview{
    img{
      max-width: 100%;
    }
  }
  .wps-admin-pages-component__promotion {
    padding: 32px !important;
    max-width: 90%;
    width: 669px;
    background-color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.07);


    h3 {
      font-size: 20px;
      font-weight: 700;
      line-height: 24px;
      text-align: center;
      margin-top: 0;
      margin-bottom: 24px;
      color:#0C0C0D;

      a {
        padding: 0 !important;
        text-decoration: none;
        color:#404BF2;

        &:hover{
          color:#0C0C0D
        }
      }
    }

    p {
      font-size: 16px;
      font-weight: 500;
      line-height: 24px;
      color: #0C0C0D;
      margin: 0 !important;
    }

    .button-primary {
      margin-top: 16px !important;
      margin-bottom: 0 !important;
      font-size: 14px;
      font-weight: 700 !important;
      line-height: 22px;
      text-align: left;
      display: inline-flex;
      gap: 10px;
      background: #404BF2 !important;
      padding: 8px 16px 8px 16px;
      align-items: center;

        &:hover{
          background: #1e27bf!important;
        }

      &:before{
        content: '';
        width: 15px;
        height: 15px;
        display: inline-block;
        background: url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NTAyWiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==") center center no-repeat;
      }
    }
  }
}
.edit-post-meta-boxes-area {
  .ui-sortable #wp-statistics-post-visitors-widget {
    background: $white-color !important;

     .postbox-header {
      .wps-refresh {
        &:focus {
          outline: none;
          box-shadow: none;
        }
      }
    }

    .handle-order-higher, .handle-order-lower {

      &:focus {
        outline: none;
        box-shadow: none;
      }

      &:not([aria-disabled="true"]):hover {
        color: $primary-color;
      }
    }

    .handlediv {
      color: $dim-black-color;

      &:focus {
        outline: none;
        box-shadow: none;
      }
    }

    .wp-statistics-widget {
      box-shadow: none;
      margin-bottom: 0;
    }

    .wps-fade-effect::after {
      content: unset;
    }
  }
}

.wps-wrap {
  .handlediv {
    color: $dim-black-color;

    &:focus {
      outline: none;
      box-shadow: none;
    }
  }

  .postbox-header {
    .handlediv {
      margin-right: 8px;
      &:last-child{
        margin-right: 0;
      }

      .toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        &:hover:before{
          filter: contrast(10);
        }
        &::before {
          content: ""!important;
          display: inline-block;
          width: 21px;
          height: 21px;
          background: url("data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjEzIiBoZWlnaHQ9IjciIHZpZXdCb3g9IjAgMCAxMyA3IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNi40OTk4MiA0LjUyNDM2TDEwLjgzMDkgMC4xOTMzNTlMMTIuMDY4MyAxLjQzMDc5TDYuNDk5ODIgNi45OTkzTDAuOTMxMzk2IDEuNDMwNzlMMi4xNjg4MyAwLjE5MzM1OUw2LjQ5OTgyIDQuNTI0MzZaIiBmaWxsPSIjNTY1ODVBIi8+Cjwvc3ZnPgo=") center center no-repeat;
        }

      }
    }
  }
}

.rtl {
  .wps-wrap {
    .postbox-header {
      .handlediv {
        margin-left: 0;
        margin-right: 8px;
      }
    }
  }
}

.c-wps-post-summary-panel-chart{
  position: relative;
}

.wps-mini-chart-post-summary-tooltip {
  box-shadow: 1px 1px 2px 0 #00000005;
  border: 0.5px solid #DADCE0;
  border-radius: 2px;
  background: #fff;
  padding: 12px;
  opacity: 1;
  pointer-events:none;
  min-width: 105px;
  margin: 0;
  position: absolute;
  transition: all .1s ease;
  z-index: 99999;

  .chart-title {
    color: #0C0C0D;
    font-size: 12px;
    font-weight: 500;
    line-height: 14.06px;
    padding-bottom: 8px;
    text-align: left;

    .rtl & {
      text-align: right;
    }
  }

  .content-item {
    display: flex;
    justify-content: space-between;

    span:first-child {
      font-size: 13px;
      font-style: italic;
      font-weight: 400;
      line-height: 15.23px;
      color: #56585A;
      display: block !important;
    }
    span:last-child {
      color: #0C0C0D;
      font-size: 13px;
      font-style: italic;
      font-weight: 500;
      line-height: 15.23px;
      display: block !important;
    }
  }
}