@import '../../style/index';

.@{prefix-cls}-alarm {
    width: 100%;
    height: 600px;
    padding: 6px 10px;
    height:calc(~'75vh - 120px'); 
    overflow-y: auto;
    // display: grid;
    // grid-template-rows: 1fr 1fr;
    // gap: 10px;

    .ant-radio-wrapper {
        margin-right: 0 !important;
    }

    &-top {
        width: 100%;
        display: grid;
        grid-template-columns: calc(40% - 5px) calc(60% - 5px);
        gap: 10px;

        &-left {
            width: 100%;
            display: grid;
            grid-template-rows: 1fr 1fr;
            gap: 10px;
        }
    }

    &-bottom {
        width: 100%;
        margin-top: 10px;
    }

    &-card {
        width: 100%;
        background: #ffffff;
        box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.02);

        &-title {
            width: 100%;
            height: 60px;
            line-height: 60px;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #e8e8e8;
            font-size: 16px;
            font-family: PingFangSC-Medium-, PingFangSC-Medium;
            font-weight: normal;
            color: rgba(0, 0, 0, 0.85);
            white-space: nowrap;
        }

        &-content {
            width: 100%;
            padding: 17px 24px;
        }
    }

    .my-flex-center {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    &-current-item {
        text-align: center;
        width: 33.33%;
        display: inline-block;

        &-name {
            font-size: 12px;
            font-family: PingFang SC-Medium, PingFang SC;
            font-weight: 500;
            color: #8d8d8d;
        }

        &-value {
            font-size: 14px;
            font-family: PingFang SC-Regular, PingFang SC;
            font-weight: 400;
            color: #313333;
        }

        &-alarm-value {
            width: 20px;
            height: 20px;
            line-height: 20px;
            background: #ff4d4f;
            font-size: 12px;
            font-family: DIN-Regular, DIN;
            font-weight: 400;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            display: inline-block;
            border-radius: 50%;
        }
    }
}
