// import { Button } from '@bjsdistribution/dms-component-library';
import { Select } from 'antd';
import styled from 'styled-components';

export const HeaderWrapper = styled.div`
  display: flex;
  padding: 20px;
  gap: 10px;
  border-radius: 0px 0px 30px 30px;
  background: #313130;
  height: 151px;
  background: url(./assets/bgBlack.png) no-repeat;
  background-size: cover;
  background-color: #000000d9;
`;

export const StyledFlex = styled.div`
  display: flex;
  justify-content: space-between;
  width: 100%;
`;

export const CoverPage = styled.div`
  position: relative;
  border-radius: 16px;
  border: 1px solid #e3e3e3;
  background: #fff;
  box-shadow: 0px 4px 30px 0px rgba(46, 45, 116, 0.05);
  padding: 20px 20px 20px 20px;
  top: -60px;
`;
export const StatusPanel = styled.div`
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  display: flex;
  padding: 10px 15px;
  justify-content: space-between;
  align-items: center;
  width: 98%;
  margin: 0 auto;
  align-items: center;
  margin-top: -71px;
  margin-bottom: 3px;

  h2 {
    color: #3a3630;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    line-height: 32px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
  }
  ul {
    border-radius: 15px;
    border: 1px solid #d0d5dd;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f7f7f7;

    li {
      color: #6a7378;
      text-align: center;
      font-size: 13px;
      font-style: normal;
      font-weight: 400;
      line-height: 16px;
      border-right: 1px solid #d0d5dd;
      display: flex;
      gap: 8px;
      align-items: center;
      cursor: pointer;

      &:last-child {
        border: none;
      }
    }
  }
`;

export const Wrapper = styled.div`
  display: flex;
  padding: 15px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  flex: 1 0 0;
  border-radius: 15px;
  background: #f8fafc;
`;

export const StyledAntSelect = styled(Select)`
  .ant-select-selector {
    /* width: 22vw; */
    border-radius: 22px;
  }
`;

export const Label = styled.div`
  color: #8e8a85;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
`;

export const FilterRow = styled.div`
  display: flex;
  align-items: center;
  gap: 20px;
  align-self: stretch;
  justify-content: space-between;
`;

export const FilterColumn = styled.div`
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  align-self: stretch;
  margin: 10px;
`;

export const RightColumn = styled.div`
  flex-direction: row;
  display: flex;
  gap: 15px;
`;

export const LeftColumn = styled.div`
  flex-direction: row;
  display: flex;
`;

export const DatePickerWrap = styled.div`
  display: flex;
  padding-right: 10px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 20px;
  border: 1px solid #e0e2e7;
  background: var(--Neutral-White, #fff);
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  min-width: 12vw;

  input[type='text'] {
    border-radius: 20px;
    background: var(--Flowkit-White, #fff);
    border: none;
    color: #6a7378;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    padding: 8px 0;
    padding-left: 10px;
    &:focus-visible {
      outline: none;
    }
  }
  .react-datepicker-wrapper {
    background-color: white;
    border-radius: 66px;
  }

  .ant-picker-outlined {
    border-style: none !important;
  }
  .ant-btn {
    background-color: #3348ff !important;
  }
`;

export const RangeSelect = styled.div`
  display: flex;
  padding: 8px 8px 8px 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-right: 1px solid #e0e2e7;
  background: #f0f2f2;
  border-radius: 20px 0 0 20px;
  font-size: 14px;
  white-space: nowrap;
  color: #8e8a85;
`;

export const ApplyButton = styled.button`
  border-radius: 15px;
  display: flex;
  padding: 7px 12px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  background: transparent;
  color: #3a3620;
  border: 1px solid #3a3630;
  cursor: pointer;

  &:not(:disabled):hover {
    background: #feba30;
  }

  &:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
  }
`;
