.ecs-cpu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ecs-cpu-card {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 86px;
    padding: 14px 16px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 0;
    background: #fff;
    color: #303133;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.ecs-cpu-card:hover,
.ecs-cpu-card:focus-visible {
    border-color: #3385ff;
    outline: none;
}

.ecs-cpu-card.is-active {
    border-color: #0064ff;
    background: #0064ff;
    color: #fff;
    box-shadow: inset 0 0 0 1px #0064ff;
}

.ecs-cpu-card-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 3px 8px;
    border-radius: 0;
    background: #ff7d00;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    border-radius: 0px 0px 0px 6px;
}

.ecs-cpu-card-badge.is-new {
    background: #13b886;
}

.ecs-cpu-card-title {
    display: block;
    min-height: 24px;
    padding-right: 44px;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.ecs-cpu-card-desc {
    min-height: 36px;
    margin: 6px 0 0;
    color: #606266;
    font-size: 13px;
    line-height: 21px;
    overflow-wrap: anywhere;
}

.ecs-cpu-card.is-active .ecs-cpu-card-desc {
    color: rgba(255, 255, 255, .85);
}

.ecs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.ecs-filter-select {
    width: 180px;
    max-width: 100%;
}

.ecs-filter-select .el-select__wrapper {
    border-radius: 0;
}

.ecs-cpu-sold-out-tip {
    align-self: center;
    color: #f56c6c;
    font-size: 14px;
    line-height: 40px;
    white-space: nowrap;
}

.ecs-selected-instance {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    min-height: 40px;
    margin-bottom: 12px;
    padding: 8px 14px;
    border: 1px solid #d9ecff;
    border-radius: 0;
    background: #f3f7ff;
    box-sizing: border-box;
}

.ecs-selected-instance-label {
    flex: 0 0 auto;
    color: #606266;
    font-size: 13px;
}

.ecs-selected-instance-value {
    min-width: 0;
    color: #0064ff;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ecs-product-table-wrap {
    width: 100%;
    height: 360px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    overflow: auto;
}

.ecs-product-table {
    width: 100%;
    min-width: 720px;
    border: 0;
    border-collapse: collapse;
    color: #303133;
    font-size: 13px;
}

.ecs-product-table th,
.ecs-product-table td {
    height: 48px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
    white-space: nowrap;
    font-size: 14px;
}

.ecs-product-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5f7fa;
    color: #606266;
    font-weight: 500;
}

.ecs-product-table tbody tr {
    cursor: pointer;
    transition: background-color .15s ease;
    height: 60px;
    line-height: 60px;
}

.ecs-product-table tbody tr:hover,
.ecs-product-table tbody tr.is-active {
    background: #f3f7ff;
}

.ecs-product-table tbody tr.is-unavailable {
    cursor: not-allowed;
    color: #a8abb2;
}

.ecs-product-table tbody tr.is-unavailable:hover {
    background: transparent;
}

.ecs-product-table input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #0064ff;
    vertical-align: middle;
}

.ecs-product-name {
    color: #303133;
    font-weight: 500;
}

.ecs-product-table tbody tr.is-active .ecs-product-name {
    color: #0064ff;
}

.ecs-product-table tbody tr.is-unavailable .ecs-product-name {
    color: #909399;
}

.ecs-sold-out {
    display: inline-block;
    margin-left: 8px;
    color: #909399;
    font-size: 12px;
    font-weight: 400;
}
.ecs-product-table tbody tr:last-child td{
    border-bottom:none;
}

.ecs-system-selector .image-card,
.ecs-system-selector .image-version-panel,
.ecs-system-version-select .el-select__wrapper {
    border-radius: 0;
}

.ecs-system-selector .image-card.is-disabled {
    cursor: not-allowed;
    opacity: .65;
}

.ecs-storage-section .ecs-storage-table {
    overflow-x: auto;
    border-radius: 0;
}

.ecs-storage-section .ecs-storage-grid {
    display: grid;
    grid-template-columns: 100px 160px minmax(180px, 1fr) 130px 80px;
    min-width: 730px;
}

.ecs-storage-section .storage-head > div,
.ecs-storage-section .storage-row > div {
    min-width: 0;
}

.ecs-storage-section .el-input-number,
.ecs-storage-section .el-input-number .el-input__wrapper,
.ecs-storage-section .el-select__wrapper,
.ecs-storage-section .el-button,
.ecs-network-section .el-input-number,
.ecs-network-section .el-input-number .el-input__wrapper,
.ecs-network-section .el-slider__button {
    border-radius: 0;
}

.ecs-storage-section .inline-number {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecs-storage-section .inline-number .el-input-number {
    width: 140px;
    max-width: 100%;
    flex: 0 0 140px;
}

.ecs-storage-section .ecs-disk-count .el-input-number {
    width: 120px;
    max-width: 100%;
}

.ecs-storage-section .ecs-disk-operation {
    position: relative;
    z-index: 1;
    overflow: visible;
    white-space: nowrap;
}

.ecs-storage-section .add-disk-line.is-disabled {
    color: #a8abb2;
    cursor: not-allowed;
}

.ecs-readonly-option {
    border-radius: 0;
    cursor: default;
    opacity: 1;
}

.ecs-bottom-bar .bottom-config-detail {
    height: auto;
    min-height: 68px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ecs-bottom-bar .bottom-config-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .ecs-cpu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ecs-bottom-bar .bottom-config-detail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ecs-cpu-grid {
        grid-template-columns: 1fr;
    }

    .ecs-filter-select {
        width: 100%;
    }

    .ecs-cpu-sold-out-tip {
        width: 100%;
        line-height: 20px;
    }

    .ecs-selected-instance {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .ecs-selected-instance-value {
        max-width: calc(100vw - 96px);
    }

    .ecs-bottom-bar .bottom-config-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}
