$manageStock-border: 0.063rem solid #d4d1d9;
$manageStock-fill-color: #fdfdfe;
$menu-btn-color: #522c81;
$body-background: #f9f9f9;
$color-white: #fff;
$menu-color: #f9f8fb;
$color-active: #65438f;

.stock-reports-download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.no-data-text {
  display: flex;
  justify-content: center;
  padding: 1.512rem;
}

.import-page, .export-page {
  .admin-page-title {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    p {
      font-size: 1.5rem;
    }
  }
}

.import-section {
  th,
  td {
    text-align: center;
    border-bottom: 0.063rem solid rgba($color: #000000, $alpha: 0.2);
    padding: 0.625rem;
  }

  td {
    border-bottom: none;
  }

  p {
    font-size: 0.875rem;
    padding-bottom: 0.625rem;
  }

  h2 {
    margin: 0.625rem 0;
  }
}

.export-section {
  p {
    font-size: 0.875rem;
    padding-bottom: 0.625rem;
  }

  h2 {
    margin: 0.625rem 0;
  }
}

.export-list-section {
  padding: 0.625rem 0 0.938rem;
  display: flex;
  gap: 2rem;
  justify-content: flex-end;

  p {
    font-weight: 600;
    font-size: 1.15rem;
    color: #000;
  }

  .checkbox-container {
    display: flex;
    gap: 2rem;
  }

  .chunk-container {
    max-width: 12.5rem;
    width: 100%;
  }
}

.select-deselect-trigger {
  border: 0.063rem solid #d4d1d9 !important; // To overwrite default common.scss scss
  color: #181718;
  border-radius: 0.25rem;
  width: fit-content;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  transition: 0.3s;
  cursor: pointer;

  &:hover {
    border: 0.063rem solid #000000 !important; // To overwrite default common.scss scss;
  }
}

.export-page-content {
  max-width: 37rem;
  width: 100%;
}

.import-page,
.export-page {
  display: flex;
  flex-direction: column;
}

.import-table {
  padding: 1.5rem;
  box-shadow: 0 0 0.2rem rgba($color: #000000, $alpha: 0.2);
  margin-bottom: 0.625rem;
  border-radius: 0.25rem;
  background-color: $manageStock-fill-color;

  .import-export-btn {
    margin: auto;
    margin-bottom: 0.625rem;
  }
}

.import-csv-section {
  border-radius: 0.5rem;
  border: 0.063rem solid rgba(0, 0, 0, 0.284);
  border-style: dashed;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 9.375rem;
  flex-direction: column;
  margin-bottom: 0.938rem;
  cursor: pointer;
  position: relative;

  .import-input {
    height: 8.125rem;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
  }

  p {
    text-align: center;
  }
}

.export-feature-card {
  display: flex;
  gap: 2rem;
  padding: 0.5rem 0;

  h1 {
    font-size: 0.875rem;
    width: 6.875rem;
    font-weight: 400;
  }
}

#admin-stockmanager input[type="number"]::-webkit-inner-spin-button {
  display: none;
}

.export-container,
.import-container {
  max-width: 43.75rem;
  width: 100%;
  padding: 1.25rem;
  border: 0.063rem solid rgba($color: #000000, $alpha: 0.2);
  background: #fff;
}

.import-export-btn-section {
  margin: 0.5rem 0;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;

  * {
    margin: 0 !important; // to adjust import button section button margin
  }

  & > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
}
.import-btn {
  padding: 0.75rem 1.5rem;
  background: #795b9d;
  border-radius: 2rem;
  color: white;
  max-width: 25rem;
  width: 100%;
}

.import-btn-section {
  display: flex;
  align-items: center;
  justify-content: end !important; // to adjust import button section button position
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.import-upload-btn-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 31.5rem) {
  .export-list-section {
    flex-direction: column;
    gap: 0rem;
    align-items: start;

    .checkbox-container {
      flex-direction: column;
      gap: 0;
      width: 100%;

      .chunk-container {
        width: 100%;
        max-width: 31.25rem;
      }
    }
  }

  .export-feature-card {
    justify-content: space-between;
  }
}

.import-export-btn {
  border-radius: 0.25rem;
  background-color: $color-active;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  a {
    color: $color-white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;

    &:hover{
      color: $color-white;
    }

    .dashicons-before {
      &::before {
        padding: 0;
      }
    }
  }
  .dashicons-before {
    &::before {
      padding: 0;
    }
  }
}
