html,
body,
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-x: auto;
  min-width: 900px;
  min-height: 0;
}

#app {
  /* max-height: 100vh;
  aspect-ratio: 4/3; */
  width: 100%;
  height: 100%;
  background-image: url("../img/bg01.png");
  background-size: cover;
  margin: auto;
}

html {
  overflow-y: auto;
}

/* 顶部工具栏 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 1rem 2rem;
}

.weather {
  margin: 0;
  padding: 0 2vw;
  flex: 1;
}

.weather p.tip {
  width: 235px;
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #fdf9cc;
  font-family: cursive;
}

.index_top_right {
  /* width: 20%; */
  height: 35px;
  margin-right: 3rem;
}

.index_top_right img {
  width: 100%;
  height: 100%;
}

/* 展示table */
.scroll {
  height: 100%;
  border-radius: 5px;
  overflow-y: auto;
}

/* title */
/* .table_title {
  padding-left: 2rem;
} */

.scroll_table {
  width: 100%;
  position: relative;
  box-shadow: 0px 0 55px rgb(255 255 255 / 10%) inset;
  color: #fff;
}

.scroll_table thead {
  position: sticky;
  top: 0;
  background: #003535;
}

.scroll_table th {
  font-weight: 600;
  color: #61d2f7;
}

.scroll_table tbody tr:nth-child(odd) {
  box-shadow: 0px 0 55px rgb(255 255 255 / 10%) inset;
}

.scroll_table tr th,
.scroll_table tr td {
  padding: 0 10px;
  padding: 1rem 0.4rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scroll_table tbody tr td {
  transition-duration: 0.3s;
  transition-timing-function: ease;
  transition-property: color, background-color;
}

.scroll_table tbody tr:hover td {
  color: #fdf9cc;
  /* font-weight: 700;加粗会有性能问题 导致卡顿 */
  background-color: #014c4c;
}

/* 中心区域 */
main.layout_content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: calc(100% - 2rem - 70px);
  margin-top: 2rem;
  padding: 0.5rem;
  color: #fff;
}

.layout_content > section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 3.5vh;
}

/* 两侧最小30rem 中心地图区域自适应 */
.main_left,
.main_right {
  width: 22%;
  min-width: 25rem;
}

.main_center {
  flex: 1;
  margin: 0 0.7rem;
  padding: 1px !important;
  border: 1px solid #065e60;
  border-radius: 1rem;
}

#center_map {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

#center_map .map_item {
  width: 100%;
  height: 100%;
  background: rgb(0, 49, 50) !important;
}

.device_map .BMap_mask {
  background: rgb(0, 49, 50) !important;
}

/* 单个功能模块样式 module_item */
.m_item {
  position: relative;
  width: 100%;
  min-height: 30.5%;
}

.m_title {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  line-height: 4.2vh;
  margin: 0;
  font-size: calc(2.3vh);
  white-space: nowrap;
  color: #fff;
  border: 1px solid transparent;
  background-image: linear-gradient(#004545, #004545),
    linear-gradient(#00afaf, #00afaf);
  background-origin: border-box;
  background-clip: content-box, border-box;
  border-radius: 0.5rem;
  letter-spacing: 2px;
}

/* 使用form拉下框的title样式 start */
.m_title[filter] {
  justify-content: space-around;
  z-index: 10;
}

.m_title[filter] > * {
  width: 45%;
}

.m_title[filter] > *:first-child {
  text-align: center;
}

.m_title[filter] .layui-form {
  position: relative;
  color: #74ffff;
  font-size: 14px;
  border-left: 1px dashed #00afaf;
  z-index: 1000;
}

.m_title[filter] .layui-form-selectup dl.layui-anim {
  z-index: 999;
}

/* 使用form拉下框的title样式 end */

.m_content {
  height: 100%;
  padding-top: 2.5vh;
  border: 1px solid #065e60;
  border-radius: 1rem;
  overflow: hidden;
}

/* table使用  */
.content_table {
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
}

/* 充满盒子 */
.m_content[full] {
  height: 100%;
  padding: 0;
}

.m_content > * {
  width: 100%;
  height: 100%;
}

#center_map {
  width: 100%;
  height: 100%;
}

/* 提示信息 */
.ele_msg[full] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
  padding: 1rem 0.5rem;
}

.ele_msg .item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 30%;
  height: 29%;
  padding: 0.5rem 0.5rem;
  border: 1px solid #065e60;
  border-radius: 0.3rem;
  overflow: hidden;
}

.ele_msg .item > * {
  width: 100%;
  text-align: center;
  font-size: 10px;
}

.item > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ele_msg .value {
  font-weight: 600;
}

.border--radius {
  border: 1px solid #065e60;
  border-radius: 1rem !important;
}

.layui-layer-photos[type="page"]::after {
  content: "X";
  position: fixed;
  top: 2vh;
  right: 2vw;
  pointer-events: none;
  font-weight: 600;
  font-size: xx-large;
  color: #fff;
  cursor: pointer;
}

.devices_conts .layui-row.layui-col-space10 {
  display: flex;
  flex-wrap: wrap;
}

.devices_conts .ctrls {
  display: flex;
  width: 100%;
  margin: 0;
  column-gap: 1rem;
  padding: 0 5px 10px;
}
