html,
body {
  /* background-image: url("./bg.jpg");
  background-repeat: no-repeat;
  background-size: 100% 100%; */
  background: #eeeeee;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
}
.table-area {
  width: 80%; /* A4 纸张宽度 */
  margin: 0 auto;
}
h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 28px;/*6px;*/
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid #ededed;
  padding: 0 8px;
  text-align: left;
  background-color: #fff;
  font-size: 12px;
  white-space: nowrap;
  height: 25px;
  box-sizing: border-box;
  box-sizing: border-box;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dropdown-container {
  display: flex;
  gap: 10px;
}

/* 美化下拉框样式 */
select {
  appearance: none; /* 移除浏览器默认样式 */
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px 30px 6px 10px; /* 右侧留出空间显示箭头 */
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="%23666" d="M5 6L0 0h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  width: 150px; /* 设置下拉框宽度 */
}

select:hover {
  border-color: #999; /* 鼠标悬停时边框颜色变化 */
}

select:focus {
  outline: none;
  border-color: #4caf50; /* 聚焦时边框颜色变化 */
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2); /* 聚焦时添加阴影 */
}

/* 让登录区域内的元素水平排列并居中 */
.login-area {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* 为输入框和按钮添加一些样式 */
input[type="password"],
button {
  border: none;
  border-radius: 4px;
  outline: none;
  height: 30px;
  padding: 0 10px;
}
input[type="password"] {
  width: 240px;
  height: 44px;
  border: 1px solid #ededed;
}
input[type="password"]:focus {
  border: 1px solid #4caf50;
}
button {
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  margin-left: 10px;
  width: 60px;
}
button:hover {
  opacity: 0.8;
}
.login-btn {
  height: 44px;
  width: 90px;
}
.logout-btn {
  background-color: #f53a3a;
}
.print-btn {
  background-color: #1890ff;
  margin-right: 10px;
}
h3 {
  display: none;
}
/* 打印专用样式 */
@media print {
  body {
    background-color: white;
    padding: 0;
    transform: scale(0.7);
  }
  .login-area,
  button {
    display: none;
  }
  .toolbar {
    display: none;
  }
  h1 {
    display: none;
  }
  h3 {
    display: block;
  }
}