html{
    background: #f2f2f2;
}
body::before {
    content: "7";
    position: absolute;
    /* 根据高度计算 */
    font-size: calc(100vh / 1.5);
    /* 根据宽高比调整 */
    transform: scaleX(calc(100vw / 100vh));
    font-weight: bold;
    color: rgba(0,0,0,0.07);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}


.width_40{
    width   : 40px;
}
.width_70{
    width   : 70px;
}
.width_120{
    width   : 120px;
}
.width_150{
    width   : 150px;
}
.width_400{
    width   : 400px;
}
.width_800{
    width   : 800px;
}
.w500h80{
    width   : 500px;
    height  : 80px;
}




/* 基础设置 */
.check-radio {
  --size: 22px;
  --color: #4CAF50;
  --border-width: 2px;
  --animation: 0.3s ease;
  
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding-left: calc(var(--size) + 12px);
  margin: 8px 0;
  user-select: none;
}

/* 隐藏原生radio */
.check-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 自定义勾选框 */
.checkmark {
  position: absolute;
  left: 0;
  height: var(--size);
  width: var(--size);
  border: var(--border-width) solid #ccc;
  border-radius: 50%;
  transition: 
    border-color var(--animation),
    background-color var(--animation);
}

/* 选中状态 */
.check-radio input:checked ~ .checkmark {
  background-color: var(--color);
  border-color: var(--color);
}

/* 勾选标记 - 初始状态 */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 选中时显示勾 */
.check-radio input:checked ~ .checkmark:after {
  display: block;
}

/* 悬停效果 */
.check-radio:hover .checkmark {
  border-color: var(--color);
}

/* 聚焦效果 */
.check-radio input:focus ~ .checkmark {
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

/* 禁用状态 */
.check-radio input:disabled ~ .checkmark {
  opacity: 0.5;
  cursor: not-allowed;
}

.check-radio input:disabled:checked ~ .checkmark {
  background-color: #ccc;
}



th , td{
    width : auto;
    min-width: 50px;
    padding : 0 10px;
    font-size : 16px;
    vertical-align: middle;
}
th{
    padding : 10px 10px;
    height: 35px;
}
td input{
    height: auto; /* 高度会根据内容自动调整，但你可以设置一个最小高度 */
    min-height: 20px; /* 最小高度 */
    resize: vertical; /* 允许用户垂直调整大小，水平调整保持禁用 */
    overflow-y: auto; /* 如果内容超出可视区域，则显示滚动条 */
    box-sizing: border-box; /* 包括内边距和边框在内计算元素的总宽度和高度 */
    border : 0;
    overflow: hidden;      /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 超出部分显示... */
    text-indent : 2pt;
    border: 1px solid #cccccc;
}
td textarea{
    border: 1px solid #cccccc;
}

.mousemove{
    position: absolute;
}
.bottom_15{
    margin-bottom : 15px;
}

section{
    margin-top : 20px;
    clear: both;
}
section .brick_ibox {
    display: inline-block;
    padding : 10px;
    width : auto;
    min-width : 400px;
    background: #ffffff;
    /* 所有边框宽度为 2 像素，样式为实线，颜色为红色 */
    border: 1px solid #000000;
    /* 所有角都为 5 像素的圆角 */
    border-radius: 5px;
    /* 15 像素的水平和垂直偏移，15 像素的模糊半径，30% 的不透明度 */
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
    cursor: move;
    /* 初始z-index值 */
    z-index: 1;
}
section .brick_ibox .ibox_title{
    background-color: #daa520;
    color : #ffffff;
    border-bottom: 1px solid #000000;
    text-indent : 10px;
    padding : 10px 0;
}
section .brick_ibox .ibox_title h3{
    margin : 0;
    padding : 0;
}
section .brick_ibox .ibox_title button{
    position: absolute;
    top : 14px;
    right : 12px;
    color : #000000;
    background-color: #ffffff;
    padding : 5px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 99;
}

section .brick_ibox .ibox_content{
    margin-top : 5px;
    font-size : 14px;
}
section .brick_ibox .ibox_content input[type=checkbox] , input[type=radio]{
    width : 25px;
    height: 25px;
    vertical-align:middle;
    text-align : center;
}
section .brick_ibox .ibox_content th,td{
    text-align : center;
}
section .brick_ibox .mian{
    width : 100%;
    border : 0;
}
section .brick_ibox .border_bottom{
    border: 1px solid #cccccc;
}
section .brick_ibox .mian {
    height: 30px;
}
section .brick_ibox .mian .label{
    display : inline-block;
    width : 30%;
    min-width : 100px;
    height: 30px;
    text-indent:8px;
    font-weight : bold;
}
section .brick_ibox .mian .value{
    width : 68.9%;
    display : inline-block;
    height: 30px;
}
section .brick_ibox .pay_mian {
    min-width : 600px;
    height: 150px;
}
section .brick_ibox .pay_mian .pay_label{
    vertical-align:top;
    display : inline-block;
    width : 30%;
    min-width : 100px;
    text-indent:8px;
    font-weight : bold;
}
section .brick_ibox .pay_mian .pay_value{
    width : 68.9%;
    display : inline-block;
}
section .brick_ibox .pay_mian .pay_value textarea{
    width : 100%;
    height: 150px;
}
section .brick_ibox .mian .value span{
    vertical-align:middle
}
section .brick_ibox .mian .value input[type=checkbox]{
    width : 20px;
    height: 20px;
    vertical-align:middle
}
section .brick_ibox .mian .value input[type=color]{
    width : 150px;
    height: 30px;
    vertical-align:middle
}
section .brick_ibox .mian .value input{
    width : 100%;
    height: 30px;
    line-height: 30px;
    text-indent:4px;
    border: none;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    color : #000000;
    font-style: italic;
}
section .brick_ibox .mian button{
    margin : 0px 30px;
    padding : 0px 10px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color : #000000;
    border-radius: 10px;
    /* 当鼠标悬停时，光标变为手指形状 */
    cursor: pointer;
}
section .brick_ibox .function{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
section .brick_ibox .function button{
    padding : 0px 10px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color : #000000;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn{
    margin : 0 2px;
    min-width : 70px;
    display : inline-block;
    background-color: #000000;
    color : #ffffff;
    border-radius: 5px;
    cursor: pointer;
}

.div_add_rule{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: auto;
    /* 半透明黑色背景 */
    background-color: rgba(255, 255, 255, 1);
    padding : 10px 20px;
    box-shadow: 0 0 12px 12px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    z-index : 10;
}
.div_add_rule .title{
    background-color: #000000;
    color : #ffffff;
    text-indent:10px;
    padding : 5px;
}
.div_add_rule .mian{
    margin : 10px;
    display: grid;
    /* 创建一个包含两列的网格 */
    grid-template-columns: 1fr 1fr;
    /* 将网格项在垂直方向上居中对齐 */
    align-items: center;
    /* 例如，设置为10像素的间距 */
    gap: 10px;
}
.div_add_rule .mian .label{
    width : 100px;
    height: 30px;
    border: 1px solid #cccccc;
    text-align: center;
}
.div_add_rule .mian .value{
    width : 330px;
    height: 30px;
    border: 1px solid #cccccc;
}
.div_add_rule .mian .radio_group {
    display: flex;
    border: 1px solid #cccccc;
    width : 330px;
    height: 30px;
}
.div_add_rule .mian .radio_group label {
    margin: 0 5px;
}

.div_add_rule .mian .value .no_border_input{
    width : 100%;
    border: none; /* 移除边框 */
    outline: none; /* 移除焦点时的轮廓线（可选） */
    padding: 3px; /* 添加一些内边距，以便更好地看到内容区域 */
    box-sizing: border-box; /* 确保内边距和边框不会增加元素的总宽度 */
}
.div_add_rule .brick_btn{
    margin : 10px 10px 10px 0;
    padding : 2px;
    border : 0;
    background-color: #000000;
    color : #ffffff;
    border-radius: 10px;
    /* 当鼠标悬停时，光标变为手指形状 */
    cursor: pointer;
}
.div_add_rule .brick_title_btn{
    float : right;
    margin-right : 10px;
    border : 0;
    padding : 2px;
    background-color: #ffffff;
    color : #000000;
    border-radius: 5px;
    /* 当鼠标悬停时，光标变为手指形状 */
    cursor: pointer;
}