html,
body {
  height: 100%;
  margin: 0;
}

.loading {
  position: fixed; /* 使用 fixed，這樣可以讓其覆蓋整個頁面，即使滾動也保持不變 */
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* 根據需求顯示或隱藏 */
}

.loading .mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #444;
  opacity: 0.5;
  z-index: 9998; /* 確保在其他元素之上，但在 .animation 之下 */
}

.loading .animation {
  width: 200px; /* 修正錯誤，應為 px */
  height: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 使用 transform 來居中 */
  background-image: url('/static/img/loading.gif');
  background-repeat: no-repeat;
  background-size: contain; /* 確保圖片完全顯示 */
}

.qc_state_pass {
  background-color: lightgreen;
}

.qc_state_rework {
  background-color: cornsilk;
}

.qc_state_scrapped {
  background-color: lightpink;
}

[name="liedit"] {
  margin: 0px 3px;
  padding: 0px 5px;
}

[name="WorkDetail_to_list"] {}


.errorlist {
  padding-left: 0px;
}

.errorlist>li {
  text-align: left;
  color: red;

}

.show_scroll {
  min-height: 250px;
  overflow-y: auto;
  max-height: 600px;
}

.lirootarea>.libox {
  width: 70%;
}

.libox {
  list-style: none;
}

th {
  text-align: center;
}

/* .del-ele{
  border: 1px solid black;
  border-radius: 10px;
  padding:3px;
} */

/* ul{
  margin-left: 20px;
} */
.bind_stock_table {
  background-color: antiquewhite;
}

.red {
  background-color: red;
}

.gray {
  background-color: rgb(197, 197, 197) !important;
}

.order_link>a {
  font-size: large;
}

#listview-table td {
  padding: 1px;
}

#listview-table,
#listview-table .btn-group-sm>.btn,
#listview-table .btn-sm {
  font-size: small;
}

.delete-column {
  padding: 1px;
}

.order-column {
  padding: 0px, 1px, 0px, 1px;
}

#drawflow {
  border: 1px black solid;
  height: 600px;
}


[draggable="true"] {
  cursor: move;
}

.prepare {
  /* width: 300px; */
  /* height: 200px; */
  border: 2px dashed gray;
  margin: 10px;
  padding: 10px;
  overflow: auto;
}

.litarget,
.litarget_process {
  background-color: antiquewhite;
  
}

.node {
  width: 90px;
  height: 90px;
  border: 2px dashed gray;
  margin: 10px;
  padding: 0px;
  position: relative;
}

.target.over {
  border: 2px dashed red;
}

.box {
  font-size: 12px;
  width: 80px;
  height: 80px;
  background: pink;
  padding: 5px;
  margin: 5px;
}

.rightplus {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translate(50%, -50%);
}


.bottomplus {
  position: absolute;
  left: 50%;
  bottom: 0px;
  transform: translate(-50%, 50%);
}