#root {
}

#tip_bar {
  /* width: 480px; */
  font-size: 18px;
  word-break: break-all;
  margin-bottom: 3px;
  padding-bottom: 0px;
}

#main {
  width: 100%;  
  max-width: 1920px;
  border-top-style: solid;
  border-top-color: blue;
}
  
#content {
  width: 70%; 
  float: left;
  padding-left: 9px;
  padding-top: 18px;
  overflow: auto;
  border-left-style: solid;
  border-left-color: green;
}
    
#menu_bar {
  font-size: 12px;
  float: left;
  padding-top: 10px;
  margin-left: 0px;
  padding-left: 0px;
}

ul li{
  margin: 0px 0px 0px 0px;
}

body { background-color: #fff; color: #333; }

body, p, ol, td {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size:   14px;
  line-height: 18px;
}

.list_line-odd {
  background-color: #e1f9ff;
}

.list_line-even {
  background-color: #ffffff;
}
 

select {
  margin: 0px;
  padding: 0px;
  height: 20px;
}

h1 {
  font-size: 18px;
  color: #8800ff;
  padding-top:1px;
  margin-top:2px;
  margin-bottom:3px;
  margin-left: 6px;
  font-weight: bold;
}

pre {
  background-color: #eee;
  padding: 10px;
  font-size: 11px;
}

a { color: #000; }
a:visited { color: #666; }
a:hover { color: #fff; background-color:#000; }


.fieldWithErrors {
  padding: 2px;
  background-color: red;
  display: table;
}

#errorExplanation {
  width: 400px;
  border: 2px solid red;
  padding: 7px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

#errorExplanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px;
  background-color: #c00;
  color: #fff;
}

#errorExplanation p {
  color: #333;
  margin-bottom: 0;
  padding: 5px;
}

#errorExplanation ul li {
  font-size: 18px;
  list-style: square;
}

.deficit_font {
  color: red;
}

.profit_font {
  color: green;
}

/* 表格行悬停高亮效果 */
.list_line-odd:hover,
.list_line-even:hover {
  background-color: #ccebff;
  cursor: pointer;
  border-left: 3px solid #0066cc;
  border-right: 3px solid #0066cc;
}

/* 按钮单元格样式重置 - 基于内容而不是位置 */
/* 首先为包含链接或按钮的单元格本身设置样式 */
table td:has(a[href]:not(.sort_link)),
table td:has(input[type="submit"]),
table td:has(button) {
  background-color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

/* 确保行悬停时按钮单元格不受影响 */
table tr:hover td:has(a[href]:not(.sort_link)),
table tr:hover td:has(input[type="submit"]),
table tr:hover td:has(button) {
  background-color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

/* 奇偶行中的按钮单元格样式 */
table tr.list_line-odd td:has(a[href]:not(.sort_link)),
table tr.list_line-odd td:has(input[type="submit"]),
table tr.list_line-odd td:has(button),
table tr.list_line-even td:has(a[href]:not(.sort_link)),
table tr.list_line-even td:has(input[type="submit"]),
table tr.list_line-even td:has(button) {
  background-color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

/* 奇偶行悬停时的按钮单元格样式 */
table tr.list_line-odd:hover td:has(a[href]:not(.sort_link)),
table tr.list_line-odd:hover td:has(input[type="submit"]),
table tr.list_line-odd:hover td:has(button),
table tr.list_line-even:hover td:has(a[href]:not(.sort_link)),
table tr.list_line-even:hover td:has(input[type="submit"]),
table tr.list_line-even:hover td:has(button) {
  background-color: #fff !important;
  border: none !important;
}

/* 表格按钮单元格样式类 */
.button-cell {
  white-space: nowrap !important;
  padding: 4px !important;
  min-width: 0 !important;
}

/* 表格按钮组样式类 */
.button-group {
  display: flex !important;
  gap: 4px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* 为包含链接的单元格中的按钮设置样式 */
table td a[href]:not(.sort_link) {
  background-color: #F5F5F5 !important;
  color: #333 !important;
  border: 1px solid #D1D1D1 !important;
  border-radius: 6px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  height: 26px !important;
  display: inline-block !important;
  text-decoration: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 10 !important;
}

/* 链接按钮悬停效果 */
table td a[href]:not(.sort_link):hover {
  background-color: #E8E8E8 !important;
  color: #333 !important;
  text-decoration: none !important;
}

/* 为包含提交按钮的单元格中的按钮设置样式 */
table td input[type="submit"] {
  background-color: #F5F5F5 !important;
  color: #333 !important;
  border: 1px solid #D1D1D1 !important;
  border-radius: 6px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  height: 26px !important;
  display: inline-block !important;
  text-decoration: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 10 !important;
}

/* 提交按钮悬停效果 */
table td input[type="submit"]:hover {
  background-color: #E8E8E8 !important;
  color: #333 !important;
}

/* 删除按钮特殊处理 */
table td input[type="submit"][value="D"] {
  background-color: #FF3B30 !important;
  color: white !important;
  border-color: #FF3B30 !important;
}

table td input[type="submit"][value="D"]:hover {
  background-color: #FF453A !important;
  border-color: #FF453A !important;
}

/* 统一按钮尺寸类 - 应用于整个网站 */
.standard-button {
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  min-width: 80px;
  height: 32px;
  vertical-align: middle;
  box-sizing: border-box;
  outline: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 按钮样式 - Mac OS风格 */
.btn {

}

/* 基础按钮共用样式 */
.btn, .button_link {
  padding: 0 16px;
  border: 1px solid #D1D1D1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  min-width: 80px;
  height: 26px;
  background-color: #F5F5F5;
  color: #333;
  border-color: #D1D1D1;
  vertical-align: middle;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary {
  background-color: #007AFF;
  color: white;
  border-color: #007AFF;
}

.btn-primary:hover {
  background-color: #0056CC;
  border-color: #0056CC;
}

.btn-normal {
  /* 已在基础按钮样式中定义，此处无需重复 */
}

/* 普通按钮和链接按钮的悬停样式 */
.btn-normal:hover, .button_link:hover {
  background-color: #E8E8E8;
  color: #333;
  text-decoration: none;
}

/* 禁用状态样式 */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #F2F2F7 !important;
  color: #8E8E93 !important;
  border-color: #D1D1D6 !important;
}

/* 链接按钮唯一样式 */
.button_link {
}

/* 自适应宽度按钮样式 - 最小宽度由内部文字决定，最宽不超过标准按钮宽度 */
.btn-auto-width {
  min-width: 0;
  max-width: 80px;
  width: auto;
  height: 26px;
}

/* macOS风格表单元素样式 */
/* 文本输入框、密码框、文本域 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea {
  padding: 0 10px;
  border: 1px solid #D1D1D1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
  height: 26px;
  background-color: #FFFFFF;
  color: #333;
  vertical-align: middle;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  transition: all 0.2s ease;
  margin-top: 1px;
  margin-bottom: 2px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
  border-color: #007AFF;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
}

/* 文本域特殊处理 */
textarea {
  height: auto;
  min-height: 80px;
  line-height: 1.4;
  resize: vertical;
  padding: 6px 10px;
}

/* 下拉选择框 */
select {
  padding: 0 10px;
  border: 1px solid #D1D1D1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
  height: 26px;
  background-color: #FFFFFF;
  color: #333;
  vertical-align: middle;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  /* 添加下拉箭头 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E8E93' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  margin-top: 2px;
  margin-bottom: 2px;
}

select:focus {
  border-color: #007AFF;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
}

/* 复选框 */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  background-color: #FFFFFF;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  transition: all 0.2s ease;
  vertical-align: middle;
  position: relative;
  margin-right: 6px;
}

input[type="checkbox"]:checked {
  background-color: #007AFF;
  border-color: #007AFF;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
}

/* 标签 */
label {
  font-size: 13px;
  font-weight: 400;
  color: #333;
  vertical-align: middle;
  cursor: pointer;
  margin-left: 6px;
  margin-right: 1px;
  margin-top: 2px;
  margin-bottom: 2px;
  display: inline-block;
}

/* 表单组样式 */
.form-group {
  margin-bottom: 16px;
  margin-top: 2px;
}

.form-group label {
  display: inline-block;
  margin-bottom: 4px;
}

/* 禁用状态 */
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #F2F2F7 !important;
  color: #8E8E93 !important;
  border-color: #D1D1D6 !important;
}

/* 危险按钮样式 - 与普通按钮相同，但文字颜色为红色 */
.btn-danger {
  padding: 0 16px;
  border: 1px solid #D1D1D1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  min-width: 80px;
  height: 26px;
  background-color: #F5F5F5;
  color: #FF0000; /* 红色文字 */
  border-color: #D1D1D1;
  vertical-align: middle;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 危险按钮悬停样式 */
.btn-danger:hover {
  background-color: #E8E8E8;
  color: #FF0000; /* 保持红色文字 */
  text-decoration: none;
}

/* 操作按钮容器样式 - 确保按钮水平排列在同一行 */
.action-buttons {
  margin-bottom: 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}

.action-buttons .btn {
  margin-right: 10px;
}