body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.app-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

nav ul li a img {
    margin-right: 5px;
    height: 20px;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    padding: 6px 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1000;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu {
    display: block;
}

nav ul li .dropdown-menu li {
    margin-left: 0;
}

nav ul li .dropdown-menu a {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    color: #333;
    white-space: nowrap;
}

nav ul li .dropdown-menu a:hover {
    background: #f5f5f5;
}

#map {
    height: 900px;
    width: 100%;
}

.sidebar {
    width: 15%;
    float: left;
    padding: 20px;
}

.content {
    width: 80%;
    float: right;
    padding: 20px;
    margin-top: 0px;
}

.area-list li {
    list-style-type: none;
}

.search-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.equipment-table {
    width: 100%;
    border-collapse: collapse;
}

.equipment-table th, .equipment-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.alarm.red {
    color: red;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.search-input {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    margin-right: 10px;
    width: 300px;
}

.search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    padding: 5px;
}

.search-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Device Details Layout */
.container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.top-row, .bottom-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.section-spacer {
    height: 5px;
    width: 100%;
}

.detail-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 250px;
    grid-column: span 1;
}
.detail-section-map {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    /*在网格中占用三列*/
    grid-column: span 3;
    min-height: 250px;
}

.section-header {
    margin-bottom: 15px;
}

.section-content {
    flex-grow: 1;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.setting-number {
    font-size: 50px;
    font-weight: bold;
    line-height: 1;
}

.status-message,
.filter-cotton-message{
    margin-top: 10px;
    color: #d9534f;
    font-weight: 500;
    font-size: 15px;        
}

/* Unified styles for all component sections */
.battery-section,
.sieve-bed-section,
.compressor-fan-section,
.filter-cotton-section{
    position: relative;
}

.battery-section .section-header h3,
.sieve-bed-section .section-header h3,
.compressor-fan-section .section-header h3,
.filter-cotton-section .section-header h3
{
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.component-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 5px;
}

.component-image {
    width: 100px;
    height: 100px;
    margin-left: auto;
}

.battery-section .section-content,
.sieve-bed-section .section-content,
.compressor-fan-section .section-content,
.sieve-bed-section .section-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-values {
    display: flex;
    font-size: 24px;
    gap: 20px 109px;
    margin-bottom: 20px;
}

.device-bottom-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-size: 24px;
    gap: 20px 40px;
}

.bottom-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-size: 24px;
    gap: 20px 40px;
}

.location-info-section {
    display: flex;
    flex-direction: column;
}

.back-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 25px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.battery-grid-container {
    margin-top: 10px;
    padding-top: 10px;
    width: 100%;
}

.battery-section {
    padding-bottom: 0px;
}

.battery-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.battery-grid-item,
.filter-cotton-grid-item{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 8px;
}

.battery-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.battery-image-container {
    flex: 0 0 100px;
}

.battery-image {
    width: 218px;
    height: 150px;
    object-fit: contain;
}

.battery-top-values {
    display: flex;
    gap: 30px;
    font-size: 24px;
    font-weight: bold;
}

.sieve-bed-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sieve-bed-image-container {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
}

.sieve-bed-image {
    width: 389px;
    height: 164px;
    object-fit: contain;
}

.filter-cotton-image-container {
    flex: 0 0 120px;
    height: 164px;
    display: flex;
    justify-content: center;
}

.filter-cotton-image {
    width: 100px;
    height: auto;
    object-fit: contain;
}


.sieve-bed-values {
    flex: 1;
}

.sieve-bed-top-values {
    display: flex;
    gap: 40px;
    font-size: 28px;
    font-weight: bold;
}

.sieve-bed-grid-container,
.filter-cotton-grid-container{
    margin-top: 10px;
    padding-top: 10px;
    width: 100%;
}

.sieve-bed-grid,
.filter-cotton-grid{
    display: flex;
    flex-wrap: wrap;
}

.sieve-bed-grid-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sieve-bed-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.sieve-bed-value,
.filter-cotton-value{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 3px;
}

.com-fan-value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 3px;
}

.sieve-bed-unit,
.filter-cotton-unit{
    font-size: 14px;
    color: #666;
}

.battery-unit {
    font-size: 14px;
    color: #666;
}

.compressor-fan-section .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.compressor-fan-section .component-image {
    width: 145px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.compressor-fan-section .section-content > div {
    width: 100%;
    max-width: 400px;
}

/* Model list styles */
.model-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.model-list li {
    margin-bottom: 8px;
}

.model-list a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.model-list a:hover {
    background-color: #e9ecef;
}

.model-list a.active {
    background-color: #0066cc;
    color: white;
    font-weight: bold;
}

.model-list a.active:hover {
    background-color: #0056b3;
}

/* Status colors */
.red {
    color: red;
}

.gray {
    color: #999;
}

.green {
    color: rgb(39, 179, 39);
}

.status-dot {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 100%;
}

/* Auto refresh controls */
.refresh-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 20px;
}

.refresh-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.refresh-interval {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.last-refresh {
    font-size: 12px;
    color: #666;
    margin-right: 10px;
}

/* Loading indicator */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #0066cc;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    color: red;
    padding: 10px;

}

/* SN link */
.sn-link {
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
}

.sn-link:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1200px) {
    .top-row, .bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-section-map {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .top-row, .bottom-row {
        grid-template-columns: 1fr;
    }
    .detail-section-map {
        grid-column: span 1;
    }
    
    .device-model-section .section-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .device-model-section .setting-container {
        justify-content: space-between;
        width: 100%;
    }
}

.component-image {
    width: 100px;
    height: 100px;
    margin-left: auto;
}

.battery-section .section-content,
.sieve-bed-section .section-content,
.compressor-fan-section .section-content,
.filter-cotton-section .section-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-values {
    display: flex;
    font-size: 24px;
    gap: 20px 109px; 
    margin-bottom: 20px;
}
.device-bottom-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-size: 24px;
    gap: 20px 40px;
}
.bottom-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-size: 24px;
    gap: 20px 40px; 
}

/* Map Section */
/* 让 map-section 成为 flex 容器 */
.map-section {
    display: flex !important;
    flex-direction: row !important;  /* 强制水平方向 */
    gap: 20px;
    min-height: 400px; /* 确保有足够高度 */
}
#map-container {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 100%;
    min-height: 370px; /* 调整地图最小高度以匹配左侧内容 */
}
/* 历史记录容器样式 */
#history-list-container {
    flex: 1;  /* 与地图各占一半 */
    min-width: 370px;
    overflow: auto;
}

.history-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 100%;
    overflow-y: auto;
}


.location-info-section {
    display: flex;
    flex-direction: column;
}

.back-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 25px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    width: 100%;
    margin-bottom: 5px;
}

/* 电池网格容器样式 */
.battery-grid-container {
    margin-top: 10px;
    padding-top: 10px;
    width: 100%;
}

.battery-section {
    padding-bottom: 0px;
}

/* 电池网格布局调整 */
.battery-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.battery-grid-item,
.filter-cotton-grid-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* 确保电池部分与其他部分宽度一致 */
.detail-section {
    grid-column: span 1;
}

/* 调整电池内容布局 */
.battery-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.battery-image-container {
    flex: 0 0 100px;
}

.battery-image {
    width: 218px;
    height: 150px;
    object-fit: contain;
}

.battery-top-values {
    display: flex;
    gap: 30px;
    font-size: 24px;
    font-weight: bold;
}

/* Sieve Bed Specific Styles */
.sieve-bed-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sieve-bed-image-container {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
}

.sieve-bed-image {
    width: 389px;
    height: 164px;
    object-fit: contain;
}

.sieve-bed-top-values {
    display: flex;
    gap: 40px;
    font-size: 28px;
    font-weight: bold;
}

.sieve-bed-grid-container,
.filter-cotton-grid-container
{
    margin-top: 10px;
    padding-top: 10px;
    width: 100%;
}

.sieve-bed-grid,
.filter-cotton-grid{
    display: flex;
    flex-wrap: wrap;
}

.sieve-bed-grid-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sieve-bed-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.sieve-bed-value,
.filter-cotton-value{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 3px;
}

.sieve-bed-unit,
.filter-cotton-unit{
    font-size: 14px;
    color: #666;
}
.battery-unit {
    font-size: 14px;
    color: #666;
}

/* Compressor Fan Section Specific Styles */
.compressor-fan-section .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.compressor-fan-section .component-image {
    width: 145px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.compressor-fan-section .section-content > div {
    width: 100%;
    max-width: 400px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .top-row, .bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-section-map {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .top-row, .bottom-row {
        grid-template-columns: 1fr;
    }
    .detail-section-map {
        grid-column: span 1;
    }
    
    .device-model-section .section-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .device-model-section .setting-container {
        justify-content: space-between;
        width: 100%;
    }
}

    /* 添加加载动画样式 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #0066cc;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    color: red;
    padding: 10px;
}

/* Hide device details by default */
#device-details {
    display: none;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    margin-top: 15px;
    gap: 8px;
    font-size: 13px;
    flex-wrap: nowrap; /* 禁止换行 */
    white-space: nowrap; /* 禁止文本换行 */
}

.pagination-left,
.pagination-center,
.pagination-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0; /* 防止收缩 */
}

.pagination-btn {
    padding: 4px 8px;
    border: 1px solid #d0d0d0;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #007bff;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.page-number {
    padding: 4px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.page-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-number:hover:not(.active) {
    background: #f8f9fa;
    border-color: #007bff;
}

.page-ellipsis {
    padding: 4px 6px;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.page-info {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
    margin: 0 8px;
    flex-shrink: 0;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.page-size-control {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.page-size-control select {
    padding: 3px 6px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 12px;
    width: 60px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.page-jump input {
    width: 45px;
    padding: 3px 6px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
}

.jump-btn {
    padding: 3px 8px;
    background: #6c757d !important;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.jump-btn:hover {
    background: #5a6268;
}

/* 响应式设计 - 在小屏幕上适当调整 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap; /* 在小屏幕上允许换行 */
        justify-content: center;
        gap: 6px;
    }

    .page-controls {
        order: -1; /* 将控制项移到第一行 */
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
}

.jump-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}
/* 横向筛选布局 */
.horizontal-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin: 8px 0;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-group.compact {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.filter-group.compact label {
    font-size: 11px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    margin-bottom: 0;
}

.filter-group.compact input,
.filter-group.compact select {
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 11px;
    width: 80px;
    height: 26px;
    box-sizing: border-box;
}

/* SIM状态筛选器特殊宽度 */
.filter-group.compact select#sim-expiry-filter {
    width: 90px;
}

.filter-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.filter-btn {
    padding: 4px 8px;
    border: 1px solid;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    height: 26px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-btn.primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-btn.primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.filter-btn.secondary {
    background: white;
    color: #6c757d;
    border-color: #6c757d;
}

.filter-btn.secondary:hover {
    background: #6c757d;
    color: white;
}

.filter-btn.export {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.filter-btn.export:hover {
    background: #218838;
    border-color: #218838;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .horizontal-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .filter-row {
        justify-content: center;
    }

    .filter-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 6px;
    }

    .filter-group.compact {
        justify-content: space-between;
        width: 100%;
    }

    .filter-group.compact input,
    .filter-group.compact select {
        width: 120px;
    }

    .filter-group.compact select#sim-expiry-filter {
        width: 130px;
    }
}




/* 图表控制区域样式 */
.chart-time-controls {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    margin-bottom: 20px;
}

.controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* 时间范围选项卡 */
.time-range-tabs {
    display: flex;
    gap: 12px;
    flex: 1;
}

.time-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    justify-content: center;
}

.time-tab:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.time-tab.active .tab-icon {
    color: white;
}

.tab-icon {
    font-size: 16px;
    color: #64748b;
}

.tab-text {
    font-weight: 500;
}

/* 显示选项 */
.chart-display-options {
    display: flex;
    gap: 16px;
    align-items: center;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.option-item:hover {
    background: #f1f5f9;
}

.option-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

.option-icon {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .controls-header {
        flex-direction: column;
        gap: 12px;
    }

    .time-range-tabs {
        width: 100%;
    }

    .time-tab {
        flex: 1;
        min-width: auto;
        padding: 10px;
        font-size: 13px;
    }

    .chart-display-options {
        width: 100%;
        justify-content: center;
    }
}

