.ros-avatar {
    width: 100%;
    height: 27%;
    line-height: 20%;
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 12px;
    background-color: rgb(114, 118, 114);

    /* vertical-align: ; */
}

.ros-avatar .ros-avatar-port {
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.groupinfo {
    display: none;
}

.groupinfo.active {
    display: flex;
}

.mileage-traveled {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis {
    height: 100%;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    align-items: center;
}


.swipe-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.swipe-list li {
    position: relative;
    display: flex;
    overflow: hidden;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

.item-content {
    flex: 1;
    padding: 20px;
}

.item-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    background-color: #fff;
}

.delete {
    background-color: red;
    color: white;
    padding: 20px;
    border: none;
}

.share {
    background-color: teal;
    color: white;
    padding: 20px;
    border: none;
}

/* 隐藏按钮区域，等到滑动时显示 */
.item-actions {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* 滑动样式 */
.swiped .item-actions {
    transform: translateX(0);
}

.swiped .item-content {
    transform: translateX(-100px);
    /* 可调节距离 */
    transition: transform 0.3s ease;
}



.blob {
    position: absolute;
    top: 10%;
    left: 10%;
    z-index: 2;
	background: black;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
	height: 7px;
	width: 7px;
	transform: scale(1);
	/* animation: pulse-black 1s infinite; */
}

.sensorStatus li {
    list-style-type: none;
}

.deviceinfo-body .d-flex.justify-content-between {
    margin-bottom: 10px;
    font-size: 14px;
}

.deviceinfo-body .d-flex.justify-content-between .text-primary {
    font-weight: bold;
}

.deviceinfo-body .d-flex.justify-content-between:last-child {
    margin-bottom: 0px;
}

.sensor {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    background-color: black;
}

@keyframes pulse-black {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(0, 0, 0, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
}

.blob.white {
	background: white;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
	animation: pulse-white 1s infinite;
}

@keyframes pulse-white {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.blob.red {
	background: rgba(255, 82, 82, 1);
	box-shadow: 0 0 0 0 rgba(255, 82, 82, 1);
	animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(255, 82, 82, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
	}
}

.blob.orange {
	background: rgba(255, 121, 63, 1);
	box-shadow: 0 0 0 0 rgba(255, 121, 63, 1);
	animation: pulse-orange 1s infinite;
}

@keyframes pulse-orange {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 121, 63, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(255, 121, 63, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 121, 63, 0);
	}
}

.blob.yellow {
	background: rgba(255, 177, 66, 1);
	box-shadow: 0 0 0 0 rgba(255, 177, 66, 1);
	animation: pulse-yellow 1s infinite;
}

@keyframes pulse-yellow {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 177, 66, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(255, 177, 66, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 177, 66, 0);
	}
}

.blob.grey {
	background: rgb(133, 133, 133);

}



.blob.blue {
	background: rgba(52, 172, 224, 1);
	box-shadow: 0 0 0 0 rgba(52, 172, 224, 1);
	animation: pulse-blue 1s infinite;
}

@keyframes pulse-blue {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(52, 172, 224, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(52, 172, 224, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(52, 172, 224, 0);
	}
}

.blob.green {
	background: rgb(6, 220, 6);
	box-shadow: 0 0 0 0 rgb(6, 220, 6);
	animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgb(6, 220, 6);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(51, 217, 178, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(51, 217, 178, 0);
	}
}

.blob.purple {
	background: rgba(142, 68, 173, 1);
	box-shadow: 0 0 0 0 rgba(142, 68, 173, 1);
	animation: pulse-purple 1s infinite;
}

@keyframes pulse-purple {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(142, 68, 173, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(142, 68, 173, 0);
	}
}


.battery {
    position: relative;
    width: 30px;
    height: 16px;
    border: 1px solid;
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 2px;
}

.battery::before {
    content: '';
    position: absolute;
    right: -4px;
    top: 30%;
    width: 2px;
    height: 40%;
    background: var(--fimobile-card-text);
    border-radius: 2px;
}

.battery-level {
    width: 100%;
    height: 100%;
    background-color: var(--fimobile-card-text);
    border-radius: 2px;
    transition: width 0.3s;
}

/* 不同电量状态 */
.low {
    background-color: #ff4444 !important; /* 红色，表示电量低 */
}
.medium {
    background-color: #ffbb33 !important; /* 橙色，表示中等电量 */
}
.charging {
    background-color: #09b606 !important; /* 橙色，表示中等电量 */
}
.charging .battery-text {
    color: #ffffff;
    text-shadow: none
}

.battery-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    z-index: 1; /* 确保数字显示在前面 */
    pointer-events: none; /* 禁止数字元素的点击行为 */
    color: #ffffff;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.7),  /* 主阴影 */
        -1px -1px 2px rgba(0, 0, 0, 0.7); /* 反向阴影 */
}
.dark-mode .battery-text {
    color: #000000;
    text-shadow:
        1px 1px 2px rgba(255, 255, 255, 0.7),  /* 主阴影 */
        -1px -1px 2px rgba(255, 255, 255, 0.7); /* 反向阴影 */
 }

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.icon-flash {
    animation: flash 1s infinite; /* 每1秒完成一次闪烁循环，重复无限次 */
}
.icon-flash-fast {
    animation: flash 0.3s infinite; /* 每1秒完成一次闪烁循环，重复无限次 */
}


@keyframes flash-battery {
    0%, 100% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}
.icon-flash-battery {
    animation: flash-battery 2s infinite; /* 每1秒完成一次闪烁循环，重复无限次 */
}


.icon-container {
    text-align: center;
    overflow: hidden; /* 隐藏超出范围的部分 */
    width: 40px; /* 设置容器宽度 */
    white-space: nowrap; /* 禁止换行 */
}
@keyframes moveRight {
    0% {
        transform: translateX(-100%); /* 起始位置 */
    }
    100% {
        transform: translateX(100%); /* 最终位置，移动到元素宽度的 100% */
    }
}

.icon-move {
    display: flex;
    overflow: hidden;
    animation: moveRight 1.5s linear infinite; /* 3秒完成一次移动，线性速度，循环无限次 */
    position: relative;
}


label.error-message {
    color: var(--bs-red);
    background: none;
    border: 0;
    position: absolute;
    z-index: 2;
    right: 0px;
    text-align: end;
    line-height: 26px;
    margin-right: 15px;

  }

#Phone-error.error-message {
    top: 50%;
    right: 0;
    transform: translate(-0%, -50%);
}

div.apexchart {
    width: 100%;
    padding: 0;
    display: block;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    z-index: 2;
    height: 50px;
    opacity: 0.7;
    margin-bottom: 0px;
    overflow: hidden;

}


div.apexchart.last {
    border-radius: 0 0 var(--fimobile-padding) var(--fimobile-padding);
}
.superuser-icon {
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 20px;
    color: #eaff00;
    transform: translate(-50%, -10%);
}

.device-weihu {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #e6c000;
    transform: translate(-50%, -50%);
    icon-shebeiweihu {
        font-size: 50px;
        text-align: start;
    }
}

.rtpmicon {
    width: 22px;
    /* display: inline; */
    justify-content: center;
    align-items: center;
    height: 22px;

}

.groupCards .swiper-wrapper .swiper-slide {
    width: 300px;
    padding: 0px 0px 15px 15px;
}

.groupCards .swiper-wrapper .swiper-slide .card {
    overflow: none;
    min-height: 160px;
}
.group-background {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    overflow: hidden;
}

.groupCards .card img.group-background-image {
    position: absolute;
    height: 120px;
    opacity: 0.2;
}

.statusSwiperContainer .swiper-wrapper .swiper-slide {
    max-width: 180px;
    padding: 0px 0px 15px 15px;
}
.statusSwiperContainer .swiper-wrapper .swiper-slide .card {
    overflow: none;
    min-height: 60px;
}

.statusSwiperContainer .swiper-wrapper .swiper-slide .card .status-name {
    font-size: 12px;
}

.remotericon {
    width: 20px; /* 宽度可以根据需要调整 */
    height: 20px; /* 高度可以根据需要调整 */
    background-image: url('../images/remotericon_black.png'); /* 背景图片路径 */
    background-size: cover; /* 背景图片适应容器大小 */
    background-position: center; /* 背景图片居中 */
    background-repeat: no-repeat; /* 禁止背景重复 */
    color: white; /* 设置文本颜色 */
    display: flex; /* 使用 flex 布局，确保内容居中 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}
.dark-mode .remotericon {
    background-image: url('../images/remotericon_write.png');
}
.groupCards .card.theme-bg .remotericon {
    background-image: url('../images/remotericon_write.png');
}
.card.theme-bg .remotericon {
    background-image: url('../images/remotericon_write.png');
}

.rtpmicon {
    width: 22px; /* 宽度可以根据需要调整 */
    height: 22px; /* 高度可以根据需要调整 */
    background-image: url('../images/rtpmicon_black.png'); /* 背景图片路径 */
    background-size: cover; /* 背景图片适应容器大小 */
    background-position: center; /* 背景图片居中 */
    background-repeat: no-repeat; /* 禁止背景重复 */
    color: white; /* 设置文本颜色 */
    display: flex; /* 使用 flex 布局，确保内容居中 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}
.dark-mode .rtpmicon {
    background-image: url('../images/rtpmicon_write.png');
}
.groupCards .card.theme-bg .rtpmicon {
    background-image: url('../images/rtpmicon_write.png');
}

.card.theme-bg .rtpmicon {
    background-image: url('../images/rtpmicon_write.png');
}

.groupCards .card .card-selected {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border: 3px solid #bbbbbb; /* 5px 灰色外圈 */
    border-radius: 50%;
    background-color: #bbbbbb;
    transform: translate(-100%, -100%);
}
.groupCards .card.selected .card-selected {
    background-color: #0f8735;
}

#mapViewer {
    position: relative;
    min-height: 400px;
    max-height: 700px;
    max-width: 100%;

}

#mapViewer canvas {
    position: absolute;
    top: var(--fimobile-padding);
    border-radius: 10px;

}

.mapContainer {
    z-index: 1;
    position: relative;
}

.CSS2DTarRender {
    position: absolute;
}

.viewerTag {
    /* z-index: 10; */
    background-color: #aeaeae;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    font-weight: 700;
    /* font-size: 14px; */
    border-radius: 10px;
    border: none;
    display: inline-block;
    line-height: 14px;
    text-align: center;
    color: #ffffff;
}

.viewerTag.primary {
    background-color: #009dff;
}

.viewerTag.info {
    background-color: #5f02b6;
}

.viewerTag.warning {
    background-color: #daa917;
    z-index: 20;
}

.viewerTag.success {
    background-color: #28aa57;
}

.wayPose {
    pointer-events: fill;
    font-weight: 700;
    background-color: #ff02ab88;
    border-radius: 10px;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    color: #ffffff;
}

.swal2-container .swal2-popup {
    border-radius: 30px;
}
.swal2-container.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.73);
}
.swal2-title {
    font-size: 1.2em;
    color: var(--fimobile-card-text);
}

.dark-mode .swal2-title {
    font-size: 1.2em;
    color: var(--fimobile-card-text);
}

.swal2-confirm.swal2-styled {
    background-color: var(--bs-orange);
    border-radius: 30px;
}

.sensor-values {
    position: relative;
    background-color: transparent;
    top: 0;
    right: 0;
    z-index: 2;
}

.device-icon {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    object-fit: cover;
}
