.header {
    background-color: #707a93;
    color: white;
    padding: 0.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 3.2rem; /* 固定高度（可依需要調整） */
    margin: 0 1rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.header_container {
    /* max-width: 1200px; */
    width: 98%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_left {
    flex-shrink: 0;
}

.header_right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.header_setting {
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    position: relative; /* ⭐ 讓 dropdown 定位依附於這裡 */
    cursor: pointer;
    gap: 5px;
}

/* 下拉選單本體 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    margin-top: 0.4rem;
    min-width: 160px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    list-style: none;
}

/* 選單項目 */
.dropdown-menu li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e0e0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

/* 滑過效果 */
.dropdown-menu li:hover {
    background-color: #f0f0f0;
}

@media (max-width: 1000px) {
    .header_right {
        display: none;
    }
}

.header_title {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

.header_name,
.header_date {
    font-size: 1rem;
    font-weight: bold;
}

.header_setting {
    font-size: 1rem;
    font-weight: bold;
    gap: 5px;
}
:root {
    --z-sidebar-wrapper: 1000;
    --z-sidebar: 100;
    --z-subicon: 90;
    --z-submenu: 80;
}

.sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 400px; /* 預留最大寬度 */
    z-index: var(--z-sidebar-wrapper);
    pointer-events: none; /* 防止 wrapper 吃掉事件 */
}

.submenu-panel {
    position: absolute;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding-top: 8px; /* 頂部留空給 header */
    z-index: 1000;
    overflow-y: auto; /* 允許垂直滾動當內容超過高度時 */
}

/* Submenu 標題 + 分隔線 */
.submenu-header {
    padding: 0 16px 8px;
}

.submenu-title {
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.1px;
}

.submenu-divider {
    display: block;
    width: 100%;
    height: 2px;
    margin-bottom: 8px;
}

/* submenu list items
.submenu-item {
    padding: 8px 16px;
    cursor: pointer;
} */
.submenu-item:hover {
    background-color: #4a5e7a;
}
.sidebar-container,
.subicon-panel,
.submenu-panel {
    pointer-events: auto;
}

.sidebar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 100dvh;
    background-color: #101727;
    z-index: var(--z-sidebar);
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 0;
    box-sizing: border-box;
}

.sidebar__list,
.sidebar__bottom {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.sidebar__item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sidebar__link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sidebar__icon {
    font-size: 1.8rem;
}

.subicon-panel {
    position: absolute;
    top: 0;
    left: 55px;
    width: 100px;
    height: 100dvh;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    background-color: #545b69;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    z-index: var(--z-subicon);
    box-sizing: border-box;
}

.subicon-item {
    padding-left: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submenu-icon {
    width: 44px;
    height: 44px;
}

.submenu-panel {
    position: absolute;
    top: 0;
    width: 300px;
    height: 100dvh;
    background-color: #323f50;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: var(--z-submenu);
    box-sizing: border-box;
}

.submenu-panel--subicon {
    padding-left: 25px;
    left: 135px;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
}

.submenu-panel--direct {
    width: 265px;
    padding-left: 30px;
    left: 55px;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
}

/* 1) 讓整個清單的每一列，橫向一律靠左 */
.submenu-panel {
    align-items: flex-start !important; /* 關鍵：column 方向下，這是水平對齊 */
}

/* 2) 每一列內容（燈號 + 文字）用 flex 左對齊 */
.submenu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    font-size: 20px;
    gap: 6px; /* 燈號與文字間距 */
    padding: 8px 0 8px 16px; /* 左右縮小，視覺更貼左 */
    margin-left: 0 !important; /* 防止被其他規則推到右邊 */
    margin-right: 0 !important;
    margin-bottom: 15px;
    width: auto; /* 避免有規則把它撐滿後再做置右 */
    text-align: left; /* 若有全域 text-align:right 也壓回來 */
}

/* 3) 燈號尺寸固定 */
.status-dot {
    width: 8px !important;
    height: 8px !important;
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .sidebar-container {
        width: 72px;
        border-radius: 0 15px 15px 0;
    }
}
.footer {
    /* background-color: #; */
    color: #4c566a;
    /* padding: 1rem; */
    text-align: center;
    height: 50px;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}
.layout__main-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 72px;
}

.layout__main-content {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 0;
    overflow-y: auto;
}

/* sidebar popup */
.sidebar-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.sidebar-popup__content {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    width: calc(100vw - 2rem);
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.close-btn {
    margin-top: 1rem;
    background-color: #1e40af;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.layout {
    display: flex;
    flex-direction: row; /* ← 重點：水平方向排列 */
    min-height: 100dvh; /* ← 我們為了修復 iPhone 多餘空間用的 */
    position: relative;
}

.layout__content {
    display: flex;
    flex: 1;
    padding-top: 3.2rem;
    min-height: calc(100vh - 3.2rem);
    margin-left: 72px;
}

.layout-sidebar {
    margin: 0;
}

.layout__main {
    flex: 1;
    padding: 1.5rem;
}
.state-container {
    position: relative;
    overflow: hidden;
    height: 20px; /* Adjust based on content height */
    display: flex;
    align-items: center;
}

.alert-text {
    position: absolute;
    width: 100%;
    animation: slideIn 0.5s ease-in-out;
}

.alert-yellow {
    color: #daa520;
}

.alert-red {
    color: red;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.card-container {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    /* max-width: 1200px; */
    margin: 20px auto;
}

.card-header {
    background-color: #559ab3;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 20px 0;
}

.card--content {
    padding: 30px;
    background-color: #ffffff;
}
.RA-container {
    position: relative;
    width: 100%;
    height: 60vh;
}
.RA-container canvas {
    width: 100% !important;
    height: 100% !important;
}
.alc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ALC-container {
    height: 400px;
    position: relative;
}

.ALC-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.hover-value {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adaptive columns */
    gap: 20px;
    padding: 20px;
}

.grid-item {
    width: 100%;
    min-height: 300px; /* Minimum height instead of fixed */
    max-height: 60vh; /* Cap height relative to viewport */
    display: flex;
    flex-direction: column;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    flex: 1; /* Allow chart to fill available space */
}

/* Media query for smaller screens */
/* @media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr; /* Single column on small screens */
/* } */

/* .grid-item {
    min-height: 250px; /* Smaller minimum height for mobile */
/* max-height: 50vh;
  } */
/* } */
.grid-container-ow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Adaptive columns */
    gap: 10px;
    padding: 10px;
}

.grid-item-ow {
    text-align: center;
    width: 100%;
    min-height: 220px;
    max-height: 40vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    position: relative;
}

.chart-box {
    width: 100%;
    flex: 1; /* 讓圖表穩定佔滿剩餘空間 */
    display: flex;
    align-items: center; /* 垂直置中 SVG */
    justify-content: center; /* 水平置中 SVG */
    min-height: 220px; /* 視你的 viewBox 調整 */
}

/* 只保留單行高度，避免換行位移 */
.sensor-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    min-height: 44px;
    white-space: normal;
    text-overflow: unset;
}

.sensor-label {
    font-size: 12px;
    text-align: center;
}

/* 無資料徽章 */
.sensor-name .badge {
    display: block;
    padding: 0 6px;
    font-size: 10px;
    line-height: 16px;
    height: 16px;
    border-radius: 8px;
    background: #eee;
    color: #666;
}

/* SVG 保持在 chart-box 內自適應 */
svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none; /* Prevent tooltip from interfering with hover */
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    white-space: nowrap; /* Prevent text wrapping */
}

.badge.is-hidden {
    visibility: hidden;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .grid-container-ow {
        grid-template-columns: repeat(
            auto-fit,
            minmax(140px, 1fr)
        ); /* Smaller min-width for mobile */
    }

    .grid-item-ow {
        min-height: 150px; /* Smaller minimum height for mobile */
        max-height: 30vh;
    }

    .sensor-name {
        font-size: 10px; /* Smaller font for mobile */
    }

    .chart-box {
        min-height: auto;
    }
}

@media (max-width: 500px) {
    .grid-container-ow {
        grid-template-columns: 1fr 1fr; /* 2 columns on very small screens */
    }
    .chart-box {
        min-height: auto;
    }
}

/* TI.css */
.ti-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.ti-row {
    width: 100%;
    height: 50vh; /* 每列圖高度，依需求調整 */
}

.ti-row canvas {
    /* 確保 Chart.js 能撐滿容器 */
    width: 100% !important;
    height: 100% !important;
}
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 重點: 用 min-height 而非 height，避免擠壓問題 */
}

.dashboard-state {
    border: 2px solid #4caf50;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-map {
    width: 100%;
    height: 600px;
    padding-top: 15px;
}

.charts-container {
    width: 100%;
    padding: 20px 0;
}

/* 手機響應式樣式 */
@media (max-width: 500px) {
    .dashboard-container {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-map {
        width: 100%;
        text-align: center;
    }
}
/* =========================
   通用 Card 基础样式
   ========================= */
.card {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: center;
    margin: 0;
}

/* Card 内容主容器 */
.card-content {
    display: grid;
    row-gap: 16px;
}

/* =========================
   地质敏感卡片专用
   ========================= */
/* 每一项灰色 pill */
.geological .card-content .item {
    background: #e0e0e0;
    border-radius: 8px;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* 分隔线 */
.geological .card-content .item::before {
    content: '';
    width: 60%;
    height: 1px;
    background: #bbb;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* 上面 label */
.geological .card-content .item .label {
    font-size: 18px;
    color: #2a2c2e;
    margin-bottom: 4px;
    z-index: 1;
    /* background: #e0e0e0; */
    padding: 0 8px;
}

/* 下面 value */
.geological .card-content .item .value {
    font-size: 18px;
    /* font-weight: 500; */
    color: #2a2c2e;
    margin-top: 4px;
    z-index: 1;
    /* background: #e0e0e0; */
    padding: 0 8px;
}

/* ========== 設備狀態卡片專用 ========== */
.card.equipment .card-content {
    display: grid;
    /* 左列自适应宽度，右列剩余空间 */
    grid-template-columns: max-content 1fr;
    row-gap: 12px;
    column-gap: 16px;
    align-items: start;
}

.card.equipment .label {
    font-size: 14px;
    color: #666;
    align-self: center;
}

.card.equipment .value-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card.equipment .value {
    font-size: 14px;
    color: #222;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.card.equipment .description {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
    line-height: 1.4;
}

.card.equipment .history-btn {
    margin-top: auto;
}

.history-btn {
    width: 100%;
    padding: 12px;
    background-color: #888;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-btn:hover {
    background-color: #666;
}

/* =========================
   下载卡片专用
   ========================= */
.download .card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.download .download-btn {
    margin-top: auto;
}

.download-btn {
    width: 100%;
    padding: 12px;
    background-color: #888;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #666;
}

/* 媒體查詢：小於 850px 時改為垂直排列 */
@media (max-width: 850px) {
    .cards-container {
        flex-direction: column;
        gap: 16px; /* 直排時上下間距 */
    }
    /* 確保上下卡片都滿版寬度 */
    .cards-container > .left-column,
    .cards-container > .card.equipment {
        flex: none;
        width: 100%;
    }
}
/* =========================
   Modal Overlay 與 Modal 彈窗樣式
   ========================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 32px 24px 24px 24px;
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

/* 右上角打叉按鈕 */
.modal .close-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.modal .close-btn:hover {
    color: #222;
}

/* Maintenance records table */
.maint-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.maint-table thead th {
    background: #1f2937; /* dark gray */
    color: #fff;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #111827;
}
.maint-table tbody td {
    background: #fff;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    word-break: break-word;
    white-space: pre-wrap;
}
.maint-actions {
    display: flex;
    gap: 8px;
}
.maint-btn-edit {
    background: #f59e0b; /* amber-500 */
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}
.maint-btn-del {
    background: #ef4444; /* red-500 */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}
.maint-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

.led-blink {
    animation: blink 1s infinite;
}
.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 日期輸入框 */
.filter-group input[type='date'] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* 預設按鈕樣式 */
.filter-btn {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #888;
    border-radius: 4px;
    background-color: #fff;
    color: #444;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* 點擊／選取後的狀態 */
.filter-btn.active {
    background-color: #666;
    color: #fff;
    border-color: #666;
}

/* 搜尋按鈕 */
.search-btn {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    background-color: #0baab3;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #099698;
}

/* 這段放到 Filter.css 最後 */
.filter-group.full-row {
    flex-basis: 100%;
}

.filter-group.search-group {
    margin-left: auto;
}
.alc-chart-container {
    width: 100%;
    height: 100%;
}

.chart-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: center;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.chart-header .chart-title {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: left;
}

.chart-download-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #fff;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-download-button:hover {
    background-color: #1d4ed8;
}

.chart-download-button:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.chart-reset-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #1f2937;
    background-color: #e5e7eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-reset-button:hover {
    background-color: #d1d5db;
}

.chart-reset-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.chart-wrapper {
    height: 820px;
    width: 100%;
}

.chart-no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
    font-size: 16px;
}

.chart-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
}
.ow-chart-container {
    width: 100%;
    height: 100%;
}

.chart-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: center;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.chart-header .chart-title {
    margin-bottom: 0;
    text-align: left;
}

.chart-download-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #fff;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-download-button:hover {
    background-color: #1d4ed8;
}

.chart-download-button:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.chart-reset-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #1f2937;
    background-color: #e5e7eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-reset-button:hover {
    background-color: #d1d5db;
}

.chart-reset-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.chart-wrapper {
    height: 620px;
    width: 95%;
    margin: auto;
}

.chart-no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
    font-size: 16px;
}

.chart-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
}
.ti-chart-container {
    width: 100%;
    height: 100%;
}

.chart-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: center;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.chart-header .chart-title {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: left;
}

.chart-download-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #fff;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-download-button:hover {
    background-color: #1d4ed8;
}

.chart-download-button:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.chart-reset-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #1f2937;
    background-color: #e5e7eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-reset-button:hover {
    background-color: #d1d5db;
}

.chart-reset-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.chart-wrapper {
    height: 820px;
    width: 100%;
}

.chart-no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
    font-size: 16px;
}

.chart-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
}
/* src/pages/Device.css */

.device-container {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 24px;
}

/* header 區塊 */
.device-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-bottom: 24px;
}

.device-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cards-container {
    display: flex;
    align-items: stretch; /* 强制左右两列同高 */
    gap: 16px; /* 左右列之间的间距 */
}

/* 左列和右侧卡片都占一半宽度 */
.cards-container > .left-column,
.cards-container > .card.equipment {
    flex: 1;
}

/* 左列内部上下两张卡片对齐 */
.left-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 上下分散 */
    gap: 16px; /* 可选：两张卡片之间的固定间距 */
}

/* 如果需要，确保每张卡都能撑满传下来的高度 */
.cards-container > .card {
    display: flex;
    flex-direction: column;
}

/* 左侧 badge/Icon */
.device-badge {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* 右侧标题文字 */
.device-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #5b5b5b;
}

.device-map {
    width: 100%;
    height: 600px;
    padding-top: 15px;
}

.device-filter {
    padding-top: 20px;
    width: 100%;
}

.chart-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

.device-chart {
    width: 100%;
    margin: 24px 0;
    min-height: 400px;
}
._container_crdt6_1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #ecf1fa;
}

._content_crdt6_10 {
    width: 100%;
    max-width: 500px;
}

._content_crdt6_10 h2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 10vh;
    text-align: center;
    border-radius: 20px 20px 0px 0px;
    margin: 0;
    background-color: #708cb3;
    color: white;
}

._content_crdt6_10 form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 30vh;
    background-color: white;
    border-radius: 0px 0px 20px 20px;
}

._formGroup_crdt6_38 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

._formGroup_crdt6_38 label {
    color: #8e8e93;
    text-align: center;
    font-family: Inter;
    font-size: 22px;
    font-style: normal;
    font-weight: 100;
    line-height: normal;
    letter-spacing: 2.6px;
    margin-right: 10px;
}

._formGroup_crdt6_38 input {
    width: 70%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #8e8e93;
    background: #f3f3f3;
    font-size: 15px;
    font-family: Inter;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.5px;
    padding: 0 10px;
}

._formButton_crdt6_74 {
    width: 30%;
    height: 45px;
    border-radius: 20px;
    border: none;
    background-color: #68b2e0;
    color: white;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 2.6px;
}
.app {
    max-width: 100%;
    margin: 0 auto;
    /* text-align: center; */
}
body {
    margin: 0;
}
