// @import "sinosun-ui/lib/style/themes/default.less";
// @import "sinosun-ui/lib/style/mixins/index.less";

.sn-in-detail {
    .in-detail {
        .comp-expenses-summary {
            padding: 0 0 0.1rem;
            &::after {
                display: none;
            }
        }
        .detail {
            padding: 0.2rem 0 0 0;
        }
    }
    .comp {
        position: relative;
        font-size: 0.3rem;
        line-height: 0.42rem;
        padding: 0;
    }

    .detail-pc:nth-child(1),
    .detail-pc:nth-child(2) {
        .comp {
            &::before {
                border: none !important;
            }
        }
    }

    .detail-app:nth-child(1) {
        .comp {
            &::before {
                border: none !important;
            }
        }
    }

    .detail {
        .label-bold {
            font-weight: bold;
            font-size: 0.32rem !important;
            color: @text-color;
        }
        .detail-title {
            flex: 1;
        }
        .title-align-right {
            text-align: right !important;
        }
        .sn-list-item-title {
            display: flex;
            align-items: center;
            .detail-del-button-icon {
                display: inline-flex;
                margin: -1px 0 0 0.48rem;
                color: @text-color-3;
                font-size: 0.36rem;
                cursor: pointer;
            }
        }
        .sn-list-item-value {
            display: flex;
            justify-content: flex-end;
            min-height: 0.5rem;
            em {
                display: flex;
                justify-content: center;
                align-items: center;
                margin-right: 0;
                font-size: '.24rem';
                color: @collapse-right-arrow-active-color;
                cursor: pointer;
            }
        }
    }
    .detail-item-con.hasSummary {
        min-height: 1.8rem;
    }
    .comp-expenses-summary {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 0 0.3rem 0.26rem;
        .bb1px();
        > span {
            display: inline-block;
            max-width: 100%;
            min-width: 40%;
            padding-right: 0.4rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.8;
            font-size: 0.32rem;
            color: @text-color;
        }
        .date {
            color: @theme-color;
        }
        em {
            padding-left: 1.2rem;
            color: @text-color;
        }
    }
    .in-detail-wrap {
        height: 0;
        visibility: hidden;
        overflow: hidden;
        transition: all 0.4s;
        &.active {
            height: auto;
            visibility: visible;
        }
    }
    .wrap {
        display: flex;
        flex-wrap:wrap;
        justify-content: space-around;
        background: @body-color;
        padding: 0.1rem 0 .3rem 0; 
        .detail-add {
            display: flex;
            align-items: center;
            width: auto;
            height: 0.64rem;
            line-height: initial;
            font-size: 0.3rem !important;
            text-align: center;
            color: @text-color;
            background: @background-white;
            margin: 0.2rem auto 0 auto;
            cursor: pointer;
            &.sn-button.sn-button-default {
                &:after {
                    border-color: @text-color-3;
                }
            }
            .sn-icon {
                margin-right: 4px;
            }
            span {
                display: flex;
                align-items: center;
                height: 100%;
            }
        }
    }
    .summary-wrap {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
        .item {
            margin-right: 1rem;
        }
    }
}

@media screen and (max-width: @screen-sm) {
    .detail-line {
        .snSubsidiaryTit {
            .bb1px();
        }
    }
}

@media screen and (min-width: @screen-sm) {
    // .page-detail {
    // 	.sn-in-detail {
    // 		.detail {

    // 		}
    // 	}
    // }
    .sn-in-detail {
        .bb1px(#ccc);
        z-index: 2;
        padding-bottom: 12px;
        margin-bottom: 12px;
        &:after {
            left: 0.3rem;
        }
        &.no-border {
            padding-bottom: 0;
            margin-bottom: 0;
            &:after {
                display: none;
            }
        }
        .comp {
            padding: 8px 0;
            border: none;
            font-size: 14px;
            line-height: 28px;
            .sn-list-item {
                padding: 0 0 0 0 !important;
            }
        }
        .detail {
            position: relative;
            margin-top: 6px;
            padding: 0 0.3rem 6px;
            margin-bottom: 0;
            &:after {
                z-index: 10;
                left: 0.3rem;
                width: calc(~'100% - 0.6rem');
            }
            .label-bold {
                font-size: 16px;
            }
            .sn-list-item-value {
                min-height: 28px;
            }
            .sn-list-item-title {
                .detail-del-button-icon {
                    margin: -1px 0 0 0.3rem;
                }
            }
        }
        .comp-expenses-summary {
            padding: 6px 0.3rem 15px;
            > span {
                min-width: unset;
                padding-right: 1.2rem;
            }
        }
        .detail-item-con.hasSummary {
            min-height: 80px;
        }
        .wrap {
            justify-content: center;
            background: @background-white;
            padding: 12px 0;
            .detail-add {
                height: 28px;
                line-height: 28px;
                font-size: 14px !important;
                text-align: center;
                background: @background-white;
                margin: 0 0.2rem;
            }
        }
    }
}
// pc中屏
@media screen and (min-width: @screen-md) {
    .detail-item-con {
        // 附件详情
        .attach-up {
            .attach-up-detail {
                .attach-fj-list {
                    .cursor_pointer {
                        width: calc(~'100% - .2rem');
                        &.onlyoneitem {
                            max-width: 400px;
                        }
                    }
                }
            }
        }
        // 明细为奇数
        &.isOdd {
            &:last-of-type {
                .attach-up {
                    .attach-up-detail {
                        .attach-fj-list {
                            .cursor_pointer {
                                width: calc(~'33.333% - .2rem');
                                &.onlyoneitem {
                                    width: calc(~'100% - .2rem');
                                    max-width: 400px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
