/* 设备管理页面样式 - 提取自 devices.php */
.devices-table {
    width: 100%;
    border-collapse: collapse;
}
.devices-table th,
.devices-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.devices-table th {
    font-weight: 600;
    color: #666;
    background: #fafafa;
}
.devices-table tbody tr:hover {
    background: #f9f9f9;
}
.devices-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    /* 表格转卡片 */
    .devices-table thead {
        display: none;
    }
    .devices-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .devices-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "id id"
            "first last"
            "count status";
        gap: 6px 12px;
        padding: 14px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fafbfc;
    }
    .devices-table td {
        padding: 0;
        border-bottom: none;
        font-size: 13px;
    }
    .devices-table td:nth-child(1) { grid-area: id; }
    .devices-table td:nth-child(1) code {
        font-size: 11px !important;
        word-break: break-all;
        white-space: normal;
    }
    .devices-table td:nth-child(2) { grid-area: first; color: #666; font-size: 12px; }
    .devices-table td:nth-child(3) { grid-area: last; color: #333; font-weight: 600; }
    .devices-table td:nth-child(4) { grid-area: count; font-weight: 600; }
    .devices-table td:nth-child(5) { grid-area: status; }
    /* 字段标签前缀 */
    .devices-table td:nth-child(1)::before { content: '💻 '; font-size: 14px; }
    .devices-table td:nth-child(2)::before { content: '📅 首次: '; font-size: 11px; color: #999; font-weight: normal; }
    .devices-table td:nth-child(3)::before { content: '🕐 最近: '; font-size: 11px; color: #999; font-weight: normal; }
    .devices-table td:nth-child(4)::before { content: '📊 '; }
    .devices-table td:nth-child(5)::before { content: '📍 '; }
    /* 分页 */
    .devices-pagination {
        gap: 6px;
    }
    .devices-pagination .pagination-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    .devices-pagination .pagination-info {
        font-size: 12px;
    }
}
