@import "~webComponents/utils/base-mixins";
@import "~webComponents/utils/general-mixins";

.caltable-title
  //padding 0 20px
  margin 0 auto
  height 34px
  font-size 12px
  font-weight 500
  text-align left
  //margin-top 20px
  rxr-font-style()
  span
    padding-right rxr-rem( 10 )
    &:nth-of-type(1)
      color rxr-get-color( biaoti )
    &:nth-of-type(2)
      color rxr-get-color( beizhu )
  .batch-btn
    float right
    margin-top rxr-rem( -10 )


.caltable-body
  padding 0
  margin 0
  margin 0 auto
  //width 532px
  //height 550px
  border-right  1px solid rxr-get-color( fengexian )
  border-bottom  1px solid rxr-get-color( fengexian )
  rxr-font-style()

  div
    margin 0
    padding 0
.caltable-head
  background #22bb9a
  text-align center
  color rxr-get-color( hoversekuai )
  line-height 45px
  font-weight bold
  font-size 14px
  cursor pointer//手形
  //margin-bottom 2px !important
  rxr-clearfix()

.table-day
  width 100%
  border 0
  text-align center
  line-height rxr-rem( 37 )
  margin 0
  padding 0
  border 1px solid rxr-get-color( fengexian )
  & > tr
    & > td
      padding 0
      margin 0
      text-align center
.caltable-t
  margin-top -10px !important
  font-size 12px

.r-table
  width 100%
  max-width 100%
  //margin-bottom 20px
  tbody > tr >td
    line-height 1.42857143
    vertical-align top

#calendar
  //border-top 1px solid #ddd
  tr
    td
      height 100px
      width 12.8%
      overflow hidden
      text-align center
      margin 0
      padding 0
      border 0px solid #ddd
      cursor pointer//手形
      box-sizing border-box
      //padding 1px
      p
        //width 100%
        box-sizing border-box
        height inherit
        position relative
        margin 0
        padding 0
        line-height 1

        &:not([class*='selected'])//防止选择的内容抖动
          span
            padding 1px 2px 0 0
        span
          padding 0
          rxr-user-select(none);
          &.r-triangle
            rxr-border-triangle(12px, rxr-get-color( icons ), topleft);//三角样式
            display none
            overflow visible
            color #fff
            font-size 14px
            &:before
              position absolute
              top -10px
              left -13px
          &.r-d
            position absolute
            top 5px
            right 5px
            color rgba(51, 51, 51, 0.47)
            font-size 14px
          &.r-m
            position absolute
            top 35px
            right 5px
            color rxr-get-color( wenzilian )
            font-size 12px
          &.r-t
            position absolute
            top 55px
            right 5px
            color rgba(51, 51, 51, 0.47)
            font-size 12px
            text-align right
          &.r-cpm
            position absolute
            right 5px
            top 75px
            font-size 12px
            color rxr-get-color( icons )
            text-align right
            text-overflow ellipsis
            white-space nowrap
            &::after
              content:'cpm'
            &.icon
              &:before
                float left
                content url(../../images/icon_dijiabaoliang.png)
                position relative
                left -5px
                top -3px
            &.icon.no
              &:before
                content ''

        &.hovered
          background #F2F2F2
        &.selected
          span
            &.r-triangle
              display block
            &.r-d
              color #000000

.comp-data-body
  .r-container-fluid
    padding-right 15px
    padding-left 15px
    margin-right auto
    margin-left auto
  .r-col-xs-4
    width 33.33333333%
    float left
    position relative
    min-height 1px
