.farm-title {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: rgb(35, 93, 147);
    margin-bottom: 0.8rem;
}

.status-container {
    max-width: 120rem;
    margin-bottom: 0.8rem;
}

.status-container .flex {
    display: flex;
}

.card {
    background: #fff;
    border-radius: 0.6rem;
    padding: 1.2rem 1.4rem;
}

.status-container .status-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0b533fc5;
    margin-bottom: -0.3rem;
    display: flex;
    align-items: center;
}

.status-container .section-head {
    display: flex;
    margin-top: 0.5rem;
    align-items: center; 
}

.status-container .section {
    margin-top: 1rem;
}

.status-container .section-title {
    border-left: 0.2rem solid rgb(115, 198, 163);
    height: 0.9rem;
    display: flex;
    align-items: center; 
    padding-left: 0.4rem;
    color: #555;
    font-size: 0.9rem;
}

.status-container .card-title {
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1.1rem;
}

.device-item {
    margin-top: 0.5rem;
}

.device-head {
    display: flex;
    align-items: center;
}

.device-head .arrow {
    width: 0.8rem;
    height: 0.7rem;
    margin-left: 0.3rem;
    margin-right: 0.2rem;
    transition: transform 0.3s ease;
    position: relative;
}

.device-head .arrow:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(188, 206, 232);
    clip-path: polygon(50% 70%, 20% 30%, 80% 30%);
}

.device-head .arrow.rotate {
    transform: rotate(180deg);
}


.device-head .device-name {
    font-size: 0.82rem;
    color: rgb(73, 100, 126);
    margin-left: 0.1rem;
}

.device-head .status-legend {
    display: flex;
    align-items: center; 
    font-size: 0.68rem;
    margin-left: 0.7rem;
    padding: 0.16rem 0.7rem;
    background: rgba(215, 223, 229, 0.2);
    border-radius: 0.5rem;
}

.device-head .status-legend lable {
    color: rgba(90, 96, 103, 0.9)
}

.device-head .color-box {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.22rem;
    border-radius: 1rem;
    vertical-align: middle;
}

.online { background-color: rgba(108, 196, 159, 0.7); }
.offline { background-color: rgba(253, 112, 112, 0.7); }
.error { background-color: rgba(252, 180, 78, 0.7); }

.device-selecter {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.icon-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0.2rem 0.2rem;
}

.icon-item {
    position: relative;
    display: flex;
    width: 5rem;
    margin-top: 0.8rem;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 0.5rem;
    background: rgba(218, 236, 229, 0);
    transition: transform 0.2s;
}

.icon-item:hover {
    transform: translateY(-0.2rem);
}

.icon-item .name {
    font-size: 0.68rem;
    margin-top: 0.4rem;
    color: #6b706c;
    text-align: center;
    word-break: break-all;
}

.icon-item .tooltip {
    visibility: hidden;
    width: 7.2rem;
    background-color: rgba(43, 44, 43, 0.95);
    color: white;
    border-radius: 0.3rem;
    padding: 0.5rem 0.6rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.65rem;
    line-height: 1.6;
}

.icon-item .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.device-content .icon-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.second-container {
    max-width: 120rem;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.2rem;
}

.stat-item {
    text-align: center;
    padding: 0.6rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #535e6b;
}

.stat-value {
    font-size: 1.22rem;
    font-weight: 600;
    color: #3a3d40ee;
    margin-bottom: 0.25rem;
}

.chart-container {
    height: 18rem;
    padding-bottom: 0.8rem;
    display: flex;
    justify-content: center;
}

.table-container {
    margin-top: 0.6rem;
}

th {
    background-color: rgb(123, 174, 232, 0.95);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

td {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    color: rgba(38, 38, 38, 0.8);
}