@import "../../style/CommonStyle.module.less";
@import "../../style/utils.module.less";

@BORDER_WIDTH: 1px;

.tItem {
  min-width: 100px;
  max-width: 500px;
  height: calc(100% - @BORDER_WIDTH);
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  border-bottom: none;
  box-sizing: border-box;
  padding: 0 12px;

  .title {
    font-size: 24px;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  &.white {
    background-color: @COLOR_WHITE;
    border: 1px solid @COLOR_GRAY02;

    .title {
      color: @COLOR_GRAY03;
    }
  }

  &.gray {
    background-color: @COLOR_GRAY03;
    border: 1px solid @COLOR_GRAY03;

    .title {
      color: @COLOR_WHITE;
    }
  }

  &.selected {
    .title {
      color: @PRIMARY_COLOR_RED;
    }
  }

  &:focus {
    background-color: @PRIMARY_COLOR_RED;
    border-color: @PRIMARY_COLOR_RED;

    .title {
      color: @COLOR_WHITE;
    }
  }

  &.medium {
    min-width: 330px;
  }
}
