.easyui-datagrid.textbox{
    font-size: 16px;
    height: 20px;
    line-height: 20px;
}

.form-section {
    flex: 1 1 auto;
    width: 100%;
    margin: 10px;
}

.information-table {
    flex: 1 1 auto;
    width: 100%;
    margin: 10px;
}

.button-group {
    display: flex; /* 让按钮组本身也成为一个 flex 容器 */
    height: 24px;
    justify-content: flex-end; /* 使按钮在其容器内右对齐 */
    margin-top: 20px; /* 调整顶部间距 */
    width: 100%;
}


/*将easyui中textbox中文字垂直居中，并设置输入文字大小为18*/
.textbox-text +span {
    font-size: 16px;
    height: 20px;
    line-height: 20px;
    align-items: center;
    justify-content: center;
}

.label_text {
    font-size: 16px;
    padding: 10px;
    line-height: 200%;
}

#input.input_select {
    margin-left: 20px;
    font-size: 16px;
    height: 20px;
    line-height: 20px;
}

input.input_number {
    width: 40px;
}

input.input_text {
    width: 150px;
}

td.margin{
    width: 20px;
}
td{
    white-space: nowrap;
    font-size: 14px;
}
tr{
    height: 40px;
    font-size: 20px;
}

/*以下代码定义了cx-messager的式样*/

/* 基础样式 */
.cx-messager {
    z-index: 10000; /* 确保高于绝大多数元素 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 180px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* 标题区域 */
.cx-messager-header {
    height: 30px;
    padding: 0 10px;
    background-color: #e0ecff;
    border-bottom: 1px solid #d9d9d9;
    position: relative;
    display: flex;
    align-items: center; /* 确保容器内元素垂直居中 */
}

/* 标题左侧内容容器 */
.cx-messager-header .header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.cx-messager-header .title-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-image: url("../css/themes/icons/icon-home.png");
    background-repeat: no-repeat;
    background-size: contain; /* 保持图标比例 */
    background-position: center;
    position: relative;
    top: 0; /* 通过调整top值微调垂直位置 */
}

.cx-messager-header .title {
    font-size: 14px;
    font-weight: bold;
    position: relative;
    top: 0; /* 通过调整top值微调垂直位置 */
}

/* 关闭按钮 */
.cx-messager-header .close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("../css/themes/icons/close16.png");
    background-repeat: no-repeat;
    background-size: contain;
    text-indent: -9999px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.cx-messager-header .close-btn:hover {
    opacity: 0.8;
}

.cx-messager-header {
    cursor: grab;
    user-select: none; /* 防止拖动时选中文本 */
}

.cx-messager-header:active {
    cursor: grabbing;
}

/* 内容区域 */
.cx-messager-body {
    padding: 10px;
    height: calc(100% - 90px);
    display: flex;
    align-items: center;
}


.cx-messager-body .content-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;
}

/* 根据不同类型设置图标 */
.cx-messager-body .content-icon.info {
    background-image: url("../css/themes/icons/info-32.png");
}
.cx-messager-body .content-icon.confirm {
    background-image: url("../css/themes/icons/question32.png");
}
.cx-messager-body .content-icon.warning {
    background-image: url("../css/themes/icons/warning32.png");
}
.cx-messager-body .content-icon.error {
    background-image: url("../css/themes/icons/error32.png");
}

.cx-messager-body .content-text {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 40px;
    line-height: 1.5;
}

/* 按钮区域 */
.cx-messager-footer {
    height: 40px;
    padding: 0 10px 20px; /* 下边距20px */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: absolute; /* 绝对定位 */
    bottom: 0; /* 贴底 */
    left: 0; /* 左对齐 */
    right: 0; /* 右对齐 */
}

.cx-messager-footer button {
    height: 26px;
    min-width: 50px;
    padding: 0 5px 0 28px; /* 左侧留更多空间给图标 */
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cx-messager-footer button:hover {
    background-color: #f0f0f0;
}

.cx-messager-footer button::before {
    content: "";
    position: absolute;
    left: 5px; /* 调整图标位置 */
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    top: 50%;
}

.cx-messager-footer .confirm-btn::before {
    background-image: url("../css/themes/icons/ok.png");
    background-repeat: no-repeat;
    background-size: contain; /* 保持图标比例 */
    background-position: center;
}

.cx-messager-footer .cancel-btn::before {
    background-image: url("../css/themes/icons/cancel.png");
    background-repeat: no-repeat;
    background-size: contain; /* 保持图标比例 */
    background-position: center;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.cx-messager.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

body.cx-messager-active {
    position: relative;
}

body.cx-messager-active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9999; /* 低于弹窗但高于其他内容 */
    pointer-events: none;
}

/* 设置handsontable控件列标题行高 */
.handsontable thead th {
    height: 0px !important; /* 行高 */
    font-size: 16px;
    font-weight: bold;
    line-height: 0px !important;
    text-align: center;
    color: #c9302c;
    vertical-align: middle;
    padding: 0 !important;
    margin: 0 !important;
}

 /*设置handsontable控件行标题（左侧数字序号）的行高和样式*/
.handsontable tr th {
    height: 0px !important;       /* 行高 */
    line-height: 0px !important;  /* 确保文字垂直居中 */
    font-size: 16px;    /* 字体大小 */
    font-weight: bold;  /* 加粗 */
    color: #f90318;     /* 字体颜色 */
    text-align: center; /* 水平居中 */
    vertical-align: middle;
    padding: 0 !important;
    margin: 0 !important;
}


/* 优化后的报表定义工具栏rpt-toolBar样式 */
#rpt-toolBar {
    font-size: 12px; /* 统一文字大小为12px */
    width: auto; /* 自动适应主窗口 */
    white-space: nowrap; /* 防止换行 */
    padding: 0;
    margin: 0;
}

#rpt-toolBar table {
    border-collapse: collapse; /* 消除单元格间距 */
    display: inline-block; /* 改为行内块级元素 */
    font-size: 12px; /* 统一文字大小为12px */
    padding: 2px;
    margin: 0;
}

#rpt-toolBar table tr {
    height: 16px;
    font-size: 12px; /* 统一文字大小为12px */
    vertical-align: top; /* 行内元素垂直居中 */
    padding: 2px;
    border: 0;
}

#rpt-toolBar table td {
    padding: 0 2px; /* 只保留水平间距2px */
    font-size: 12px; /* 统一文字大小为12px */
    vertical-align: top;
    height: 16px; /* 固定行高 */
    line-height: 16px;
}

#rpt-toolBar button {
    margin: 0;
    padding: 0;
    font-size: 12px; /* 统一文字大小为12px */
    vertical-align: middle;
    background-color: transparent;
    border: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; /* 添加过渡效果 */
}

/* 添加按钮光标悬停样式 */
#rpt-toolBar button:hover {
    background-color: #ADD8E6; /* 悬停时背景色变为浅蓝色 */
    color: #007BFF; /* 文字颜色变为蓝色 */
    border: 1px solid #007BFF; /* 添加蓝色边框 */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* 添加蓝色阴影效果 */
}

#rpt-toolBar button img {
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

#rpt-toolBar span {
    font-size: 12px;
    vertical-align: top !important;
    display: inline-block;
    margin: 0 2px;
    padding: 0;
}

/* 下拉菜单样式调整 */
#rpt-toolBar select {
    font-size: 12px;
    height: 16px;
    line-height: 16px;
    padding: 0 2px;
    margin: 0;
    vertical-align: top;
    border: 1px solid #ccc; /* 只保留下拉菜单边框 */
    transition: border-color 0.2s; /* 平滑过渡效果 */
}

/* 添加下拉菜单光标悬停样式 */
#rpt-toolBar select:hover {
    border-color: #007BFF; /* 悬停时边框颜色变为蓝色 */
}

/* 特殊按钮调整 */
#mergeAndCenter,
#mergeCancel {
    font-size: 12px; /* 统一文字大小为12px */
    padding: 0 4px !important; /* 合并按钮稍宽 */
}


#mergeAndCenter span,
#mergeCancel span {
    font-size: 12px; /* 统一文字大小为12px */
    vertical-align: middle;
}
/* 结束报表定义工具栏rpt-toolBar样式定义 */

/* 开始定义 formulaBar 样式 */
#rpt-formulaBar {
    height: 23px; /* 固定高度为22px */
    border-bottom: 1px solid lightgray; /* 底边框 */
    display: flex; /* 使用 Flexbox 实现横向排列 */
    align-items: center; /* 垂直居中对齐 */
    padding-left: 5px; /* 与最左侧边缘有5px的间距 */
    padding-bottom: 1px;
}

/* 下拉框、输入框、按钮的公共样式 */
#rpt-formulaBar select,
#rpt-formulaBar input[type="text"],
#rpt-formulaBar button {
    height: 20px; /* 统一高度 */
    line-height: 20px; /* 统一行高 */
    margin-left: 5px; /* 元素之间的间隔 */
    font-size: 12px; /* 统一字体大小 */
    border: 1px solid lightgray; /* 输入框和按钮的统一边框 */
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; /* 添加过渡效果 */
}

/* 特殊调整下拉框和输入框 */
#rpt-formulaBar select,
#rpt-formulaBar input[type="text"] {
    padding: 0 2px; /* 填充 */
}

/* 图标按钮特定样式 */
#rpt-formulaBar button {
    background-color: transparent; /* 背景透明 */
    border: none; /* 去除边框 */
    width: 16px; /* 按钮宽度 */
    height: 16px; /* 按钮高度 */
    margin-left: 5px; /* 图标与其他元素的间隔 */
}

/* 添加按钮悬浮样式 */
#rpt-formulaBar button:hover {
    background-color: #ADD8E6; /* 悬浮时背景色变为浅蓝色 */
    border: 1px solid #007BFF; /* 添加蓝色边框 */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* 添加蓝色阴影效果 */
}

/* 添加下拉框和输入框悬浮样式 */
#rpt-formulaBar select:hover,
#rpt-formulaBar input[type="text"]:hover {
    border-color: #007BFF; /* 悬浮时边框颜色变为蓝色 */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* 添加蓝色阴影效果 */
}

/* 特殊调整formulabox*/
#rpt-formulaBar input#formulabox {
    flex-grow: 1; /* 使输入框填满剩余空间 */
    height: 20px; /* 统一高度 */
    margin-left: 5px; /* 使其与前面元素保持间隔 */
    border: 1px solid lightgray; /* 边框 */
}
/* 结束formulaBar样式定义 */
