import styled from "styled-components";

export const Container = styled.div`
  width: 100%;
  background: #fff;
  box-shadow: 0px 2px 6px #0000000A;
  padding: 24px 0;
`

export const Content = styled.div<any>`
  min-height: ${props => props.minHeight ? props.minHeight : 'auto'};
`

export const Table = styled.table`
  border-collapse: collapse;
  width: 100%;
  thead {
    tr {
      border-bottom: 1px solid #E0E0E0;
      th {
        padding: 12px 24px;
      }
    }
  }
  tbody {
    tr {
      td {
        padding: 16px 24px;
        color: #666666;
        font-size: 14px;
      }
    }
    tr:nth-child(even) {
      background: #FAFAFA;
      border-bottom: 1px solid #f1f1f1;
      border-top: 1px solid #f1f1f1;
    }
  }
`

export const TextColumn = styled.span`
  color: #666666;
  font-size: 14px;
`

export const ColumnContent = styled.div`
  gap: 2px;
  align-items: center;
  display: flex;
`

export const IconFilterDialog = styled.div`
  width: 20px;
  height: 20px;
  cursor: pointer;
`

export const backgroundDialog = styled.div`
  width: 100%;
  position: absolute;
  height: 100vh;
  background: transparent;
  top: 0;
  left: 0;
`

export const FilterDialog = styled.div`
  padding: 8px;
  margin: 6px 0px 0 0;
  position: absolute;
  width: 302px;
  background: #fff;
  box-shadow: 0px 3px 6px #00000029;
  border: 1px solid #E0E0E0;
`

export const ListFilterDialog = styled.div`
  display: flex;
  flex-direction: column;
  .label {
    margin: 0 0 8px 0;
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
  }
  .select {
    border: 1px solid #E0E0E0;
    padding: 8px 12px;
  }
`

export const OptionFilterDialog = styled.div`
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 6px 8px;
  cursor: pointer;
  &:hover {
    background: rgba(0, 0, 0, 0.04);
  }
  .icon {
    color: #666;
  }
  .rotate {
    rotate: 180deg;
  }
  div {
    width: 20px;
    height: 20px;
  }
  p {
    margin: 0;
    color: #666666;
    font-size: 16px;
    font-weight: 400;
  }
`