@import '../../../base/style.less';

.flex(@justify, @align, @direction: row) {
    display: flex;
    flex-direction: @direction;
    align-items: @align;
    justify-content: @justify;
}

.font(@fontW, @fontSize, @fontCol, @fontFa: 'PingFangSC-Regular') {
    color: @fontCol;
    font-weight: @fontW;
    font-size: @fontSize;
    font-family: @fontFa;
}


.record-box {
    width: 92%;
    height: auto;
    margin: 0 auto;
    margin-bottom: .2rem;
    overflow: hidden;
    background: #fff;
    border-radius: .1rem;
    .record-title{
        display: flex;
        flex: var(--card-letf-flex);
        flex-direction: row;
        align-items: center;
        margin-top: .12rem;
        .record-title-icon {
            display: flex;
            flex: 0 0 var(--icon-width-size);
            flex-direction: row;
            align-items: center;
            justify-content: center;
            width: var(--icon-width-size);
            height: var(--icon-height-size);
            margin: var(--icon-margin-all);
            background: var(--icon-bg-color);
            border-radius: 50%;
    
            .record-title-icon-image {
              display: inline-block;
              width: var(--icon-inside-width);
              height: var(--icon-inside-height);
              color: var(--icon-inside-color);
              font-size: var(--icon-inside-font-size);
            }
        }
        .record-title-text {
            .record-text-main {
              display: -webkit-box;
              overflow: hidden;
              color: var(--title-font-color);
              font-weight: var(--title-font-weight);
              font-size: var(--title-font-size);
              font-family: var(--title-font-family);
              -webkit-line-clamp: 2;
              -webkit-box-orient: vertical;
              line-height: var(--title-font-height);
    
            }
          }
    }
    .date-calendar {
        width: 92%;
        height: .4rem;
        margin: .16rem auto .08rem auto;
        border: 1px solid #E5E5E5;
        border-radius: .1rem;
        .flex(space-between, center);

        .dates {
            margin-left: .15rem;
            .font(500, .16rem, #222);
        }

        .date-icon {
            width: 0.22rem;
            margin-right: .15rem;
            transform: translate(-1000px);
            filter: drop-shadow(1000px 0 0 var(--icon-inside-color)); 
        }
    }

    .record-nolist-height{
        height: 3rem;
    }

    .record-list-height{
        max-height: 3rem;
    }
    .record-list {
        width: 100%;
        overflow-y: auto;



        .record-list-item {
            width: 100%;
            height: .44rem;
            padding: 0 .2rem;
            .flex(null, center);

            .record-item-left {
                position: relative;
                width: .475rem;
                height: 100%;
                margin-right: .07rem;
                .font(400, .12rem, #999);
                .flex(center, center);

                .item-line-top,
                .item-line-bottom {
                    position: absolute;
                    left: 50%;
                    width: .015rem;
                    height: .1rem;
                    background: rgba(229, 229, 229, .5);
                    border-radius: .01rem;
                    transform: translateX(-50%);
                }

                .item-line-top {
                    top: 0;
                }

                .item-line-bottom {
                    bottom: 0;
                }
            }

            .record-item-right {
                flex: 1;
                height: 100%;
                border-bottom: 1px solid #E5E5E5;
                .flex(null, center);
                .font(400, .12rem, #222);

                .record-item-name {
                    width: .75rem;
                    height: 100%;
                    margin-right: .12rem;
                    overflow: hidden;
                    line-height: .44rem;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                }

                .record-item-type {
                    .flex(null, center);
                }


            }

            &:last-of-type {
                .record-item-left .item-line-bottom {
                    width: 0;
                }

                .record-item-right {
                    border-bottom: none;
                }
            }

        }

        .loading {
            display: block;
            color: #CCC;
            font-family: PingFangSC-Regular;
            font-size: 0.1rem;
            letter-spacing: 0;
            text-align: center;
            line-height: 0.1rem;
            font-weight: 400;
            margin-top: 0.17rem;
            margin-bottom: 0.17rem;
        }
        .loadComplete {
            display: block;
            color: #CCC;
            font-family: PingFangSC-Regular;
            font-size: 0.1rem;
            letter-spacing: 0;
            text-align: center;
            line-height: 0.2rem;
            font-weight: 400;
            margin-top: 0.17rem;
            margin-bottom: 0.17rem;
        }

        .loadding {
            width: 100%;
            height: .44rem;
            .font(400, .1rem, #ccc);
            .flex(center, center);
        }
        .default-page {
            position: relative;
            width: 100%;
            height: 100%;
          
            .default-box {
              position: absolute;
              top: 0;
              right: 0;
              bottom: 0;
              left: 0;
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              width: 2.1rem;
              height: 2.5rem;
              margin: auto;
              
            }
          
            .default-img {
              width: 100%;
          
            }
          
            .default-text {
              color: #CCC;
              font-weight: 400;
              font-size: .14rem;
              line-height: .18rem;
              letter-spacing: 0;
              text-align: center;
            }
          }
    }

    .calendar-box-mark {
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 11;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: rgba(0, 0, 0, .7);

        .calendar-box {
            position: absolute;
            bottom: -4.24rem;
            left: 0;
            z-index: 99;
            width: 100%;
            height: 4.24rem;
            overflow: hidden;
            background: #fff;
            border-radius: .15rem .15rem 0 0;
            box-shadow: 0 -0.01rem .03rem 0 rgba(0, 0, 0, 0.20);
            visibility: hidden;
            transition: all .3s ease;

            .calendar-box-title {
                width: 100%;
                height: .605rem;
                .flex(space-between, center);

                .title-btn {
                    .font(500, .16rem, #333);
                }

                .cancel-btn,
                .ok-btn {
                    width: .5rem;
                    height: 100%;
                    .font(400, .16rem, #333);
                    .flex(center, center);
                }

                .cancel-btn {
                    margin-left: .24rem;
                }

                .ok-btn {
                    margin-right: .24rem;
                    color: var(--icon-inside-color);
                    // color: #FF8E33;
                    
                }
            }

            .react-h5-calendar {
                height: 100%;

                .calendar-operate {
                    justify-content: center;
                    height: .2rem;
                    margin: .155rem 0;
                    .font(400, .16rem, #333);

                    .icon {
                        width: .15rem;
                        height: .15rem;
                        color: #333;

                        .arrow-icons {
                            width: 100%;
                            height: 100%;
                        }

                    }

                    .left-icon {
                        margin-right: .325rem;
                    }

                    .right-icon {
                        margin-left: .325rem;
                    }
                }

                .calendar-head {
                    margin-bottom: .235rem;
                    padding: 0 .15rem .16rem;
                    border-bottom: 1px solid #EAEAEA;
                    .font(400, .16rem, #666);

                }

                .calendar-body {
                    height: auto;

                    .month-cell {
                        padding: 0 .15rem;

                        .day-cell {
                            height: .4rem;
                            .font(400, .16rem, #333);

                            .current-day {
                                width: 0.4rem;
                                height: 100%;
                                color: var(--icon-inside-color);;
                                background: #fff;
                                border: 1px solid var(--icon-inside-color);
                            }

                            &.is-other-month-day {
                                color: #ccc;
                            }
                        }
                    }
                }

                .bottom-operate {
                    display: none;
                }
            }

            &.show {
                bottom: 0;
                visibility: visible;
            }
        }
    }
}