// 关联应急预案卡片列表样式
.planListWrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 35px 0 0 0;
    height: 200px;
    overflow: auto;
    /* 隐藏滚动条但保留滚动效果 */
    scrollbar-width: none;
}

.planListWrap::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.planCard {
    background: #F1F7FF;
    // border: 1px solid #ecedfc;
    border-radius: 4px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px 0 rgba(46, 76, 212, 0.03);
    display: flex;
    gap: 8px;
}

.planCardTitle {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.planCardDesc {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.planCardFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.planCardUpdate {
    font-size: 12px;
    color: #666;
}

.planCardBtns {
    display: flex;
    gap: 10px;
}

.quickBtn {
    background: #1169FF !important;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px !important;
    font-weight: 500;
    padding: 0 12px;
    display: flex;
    align-items: center;
}

.quickBtn:hover {
    background: #1169FF;
    color: #fff;
}

.delBtn {
    background: #FE5F60 !important;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px !important;
    font-weight: 500;
    padding: 0 12px;
    display: flex;
    align-items: center;
}

.delBtn:hover {
    background: #d9363e;
    color: #fff;
}

// 重点部位列表样式

.Rcontainer {
    padding: 8px 6px 0px 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;

    .RcontainerTop {
        height: 100%;
        border-radius: 4px;
        display: flex;
        // flex-direction: column;
        background: url('@/assets/business_firekeynotearea/yj-bg.png') no-repeat center center;
        background-size: cover;

        .sectionContent {
            width: 100%;
            height: 100%;
            gap: 10px;

            .topBlock {
                height: 100%;
                display: flex;
                flex-direction: column;
                font-family: PingFang SC;
                font-size: 14px;
                color: #333333;
                padding: 5px 10px 5px 10px;

                .topBlockTitle {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    // margin-bottom: 10px;

                    .titleLeft {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        font-weight: 500;
                        font-size: 14px;
                        color: #333333;

                        .titleIcon {
                            width: 3px;
                            height: 14px;
                            background-color: #2E4CD4;
                        }
                    }

                    .titleRight {
                        font-size: 12px;
                        width: 60px;
                        height: 20px;
                        line-height: 20px;
                        background-color: #E6E9FB;
                        color: #2E4CD4;
                        text-align: center;
                        border-radius: 2px;
                    }
                }

                .topBlockBg {
                    width: 100%;
                    height: 100%;
                    padding: 5px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }

        }
    }

    // 第二个div - 高度39%
    .RcontainerMiddle {
        height: 100%;
        border-radius: 4px;
        display: flex;
        flex-direction: column;

        .sectionContent {
            height: 100%;
            display: flex;
            gap: 10px;

            .middleBlock1 {
                flex: 4;
                // width: 28%;
                height: 100%;
                background: #fff;

                border: 2px solid #fff;
                // border-radius: 4px;
                position: relative;
                padding: 0px 10px 10px 10px;
                font-family: PingFang SC;
                font-size: 14px;
                color: #333333;

                .block1Header {
                    position: absolute;
                    top: 5px;
                    left: 10px;
                    right: 10px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    z-index: 10;
                    height: 28px;
                    line-height: 28px;

                    .block1Title {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        font-weight: 500;
                        font-size: 14px;
                        color: #333333;

                        .titleIcon {
                            width: 3px;
                            height: 14px;
                            background-color: #2E4CD4;
                        }
                    }

                    .block1Segmented {
                        padding: 0;
                        margin: 0;
                        border: 1px solid #E3E3E3;
                        border-radius: 4px;
                        height: 28px;

                        :global(.ant-segmented) {
                            padding: 0;
                            margin: 0;
                            height: 28px;
                        }

                        :global(.ant-segmented-item) {
                            font-size: 12px;
                            // padding: 2px 8px;
                            height: 26px;
                            line-height: 26px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }

                        :global(.ant-segmented-item-selected) {
                            background-color: #2E4CD4;
                            color: #fff;
                        }
                    }
                }

                .deviceStatusChart {
                    position: absolute;
                    top: 35px;
                    left: 10px;
                    right: 10px;
                    bottom: 10px;
                    z-index: 10;
                }
            }

            .middleBlock2 {
                flex: 4;
                height: 100%;
                // background: linear-gradient(170.5deg, #EBEFF4 6.87%, #FFFFFF 53.01%);
                // border: 2px solid #fff;
                background-color: #fff;
                // border-radius: 4px;
                display: flex;
                flex-direction: column;
                font-family: PingFang SC;
                font-size: 14px;
                color: #333333;
                padding: 5px 10px 5px 10px;

                .middleBlock2Title {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    line-height: 28px;
                    height: 28px;
                    // margin-bottom: 10px;

                    .titleLeft {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        font-weight: 500;
                        font-size: 14px;
                        color: #333333;

                        .titleIcon {
                            width: 3px;
                            height: 14px;
                            background-color: #2E4CD4;
                        }
                    }

                    .titleRight {
                        font-size: 12px;
                        width: 60px;
                        height: 20px;
                        line-height: 20px;
                        background-color: #E6E9FB;
                        color: #2E4CD4;
                        text-align: center;
                        border-radius: 2px;
                    }
                }

                .middleBlock2Chart {
                    width: 100%;
                    height: 100%;
                    padding: 5px;
                    // min-height: 200px;
                }
            }

        }
    }

    // 第三个div - 高度不超过45%
    .RcontainerBottom {
        height: 45%; // 限制高度不超过45%
        max-height: 45%; // 确保最大高度不超过45%
        // display: flex;
        // flex-direction: column;

        .sectionContent {
            // display: flex;
            // flex-direction: row;
            // gap: 10px;
            padding: 0;

            .tableBlock {
                width: 100%;
                height: 100%;
                background-color: #fff;
                padding: 0;
                display: flex;
                flex-direction: column;

                .tableHeader {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 8px 15px 5px 15px;

                    .tableTitle {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        font-family: PingFang SC;
                        font-weight: 500;
                        font-size: 14px;
                        color: #333333;

                        .titleIcon {
                            width: 3px;
                            height: 16px;
                            background-color: #2E4CD4;
                        }
                    }

                    .tableActions {
                        display: flex;
                        gap: 8px;
                        margin-top: 5px;

                        .searchInput {
                            // flex: 1;
                            // height: 40px;
                            // border: 1px solid #E3E6EB;
                            // border-radius: 6px;
                            // padding: 0 16px;
                            // font-size: 14px;
                            // color: #333;
                            // background: #fff;
                            // outline: none;
                            // box-shadow: none;
                            // transition: border-color 0.2s;
                        }

                        .searchInput:focus {
                            border-color: #2E4CD4;
                        }

                        .selectAll {
                            // height: 40px;
                            // border: 1px solid #E3E6EB;
                            // border-radius: 6px;
                            // background: #fff;
                            // font-size: 14px;
                            // color: #333;
                            // padding: 0 32px 0 16px;
                            // margin-left: 12px;
                        }

                        .selectAll:focus {
                            border-color: #2E4CD4;
                        }

                        .addBtn {
                            background: #2E4CD4;
                            margin-left: 15px;
                        }

                        .addBtn:hover {
                            background: #1d3bb3;
                        }
                    }
                }

                .tableContainer {
                    flex: 1;
                    overflow: hidden;
                    margin: 10px 15px 0 15px; // 上边距10px，左右边距15px

                    :global(.ant-table) {
                        font-size: 12px;
                    }

                    :global(.ant-table-thead > tr > th) {
                        background-color: #f5f5fa;
                        font-weight: 500;
                        font-size: 14px;
                        color: #333333;
                        border-bottom: 1px solid #f0f0f0;
                        padding: 8px 12px;
                        text-align: center;
                    }

                    :global(.ant-table-tbody > tr > td) {
                        padding: 8px 12px;
                        border-bottom: 1px solid #f0f0f0;
                        text-align: center;
                        color: #666666;
                    }

                    :global(.ant-table-tbody > tr:hover > td) {
                        background-color: #f5f5f5;
                    }

                    :global(.ant-pagination) {
                        margin-top: 16px;
                        text-align: right;
                    }
                }
            }
        }
    }
}