/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.header h1 {
    text-align: center;
    color: #2c3e50;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    flex: 1;
    min-width: 300px;
}

.header h1 i {
    color: #e74c3c;
    margin-right: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.username-display {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.username-display::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #6c757d;
}

.auth-days-display {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f8f9fa;
}

.btn-logout {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
    background: #dc3545;
    color: white;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-btn i {
    margin-right: 8px;
}

.nav-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* 主内容区域 */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 输入组样式 */
.input-group {
    display: flex;
    gap: 5px;
    align-items: stretch;
}

.input-group input,
.input-group select {
    flex: 1;
    min-width: 0;
}

.input-group button {
    flex-shrink: 0;
    padding: 12px 15px;
    white-space: nowrap;
}

/* 使用单位组特殊样式 - 让按钮靠右，增加信息框长度 */
.using-unit-group .input-group {
    justify-content: space-between;
}

.using-unit-group .input-group select {
    flex: 1;
    margin-right: 5px;
}

.using-unit-group .input-group button {
    margin-left: auto;
}

/* 左右分栏布局 */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    min-height: 600px;
}

.form-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.preview-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-container {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 表单样式 */
.form-container {
    margin-bottom: 0;
}

.form-container h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

.form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 维保编码组特殊样式 - 缩短一半宽度 */
.maintenance-code-group {
    grid-column: span 1;
}

/* 包含维保编码的行使用不同的列宽比例 */
.form-row .maintenance-code-group + .form-group {
    grid-column: span 1;
}

/* 为包含维保编码的行设置特殊样式 - 与灭火器类型框对齐 */
.form-row:first-of-type {
    grid-template-columns: 1fr 1fr;
}

/* 使用单位行特殊样式 - 型号规格框与灭火器类型框对齐，使用单位+按钮适当增长 */
.using-unit-row {
    grid-template-columns: 1fr 1fr;
}

/* 型号规格组特殊样式 - 缩短宽度 */
.model-spec-group {
    grid-column: span 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

/* 小尺寸按钮样式 - 用于新增和修改按钮 */
.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    gap: 4px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-small i {
    font-size: 11px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* 标签预览样式 */
.preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 100%;
    overflow: hidden;
    padding: 20px;
}

.preview-container h3 {
    color: #2c3e50;
    margin-bottom: 15px; /* 减少底部边距 */
    font-size: 1.2rem; /* 适当缩小标题 */
    text-align: center;
}

.label-preview {
    width: 560px; /* 固定宽度 */
    height: 400px; /* 固定高度 */
    border: none; /* 去除边框线条 */
    margin: 0 auto;
    background: #ffffff !important; /* 白色背景，与图片一致 */
    position: relative;
    font-family: 'SimSun', '仿宋体', serif;
    flex-shrink: 0; /* 防止被压缩 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    border-radius: 0; /* 无圆角 */
    overflow: hidden; /* 确保内容不超出背景 */
    box-sizing: border-box; /* 确保尺寸计算包含边框和内边距 */
    transform: scale(0.85) translateX(-10%); /* 增大缩放比例并向左移动10% */
    transform-origin: center; /* 变换原点 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .label-preview {
        width: 100%; /* 适应容器宽度 */
        max-width: 560px; /* 最大宽度 */
        height: auto; /* 自动高度 */
        min-height: 300px; /* 最小高度 */
        transform: scale(0.6); /* 进一步缩小以适应容器 */
        transform-origin: center; /* 变换原点 */
    }
}

.label-content {
    width: 100%;
    height: 100%;
    padding: 0;
    position: relative;
    box-sizing: border-box; /* 确保尺寸计算正确 */
    overflow: hidden; /* 确保内容不超出 */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-1%); /* 向左偏移1% */
}

/* 纸张尺寸标识 */
.label-preview::after {
    content: "70mm × 50mm";
    position: absolute;
    bottom: -35px; /* -25px * 1.4 = -35px (等比例放大40%) */
    left: 50%;
    transform: translateX(-50%);
    font-size: 16.8px; /* 12px * 1.4 = 16.8px (等比例放大40%) */
    color: #666;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    padding: 2.8px 11.2px; /* 2px * 1.4 = 2.8px, 8px * 1.4 = 11.2px (等比例放大40%) */
    border-radius: 5.6px; /* 4px * 1.4 = 5.6px (等比例放大40%) */
    border: 1px solid #ddd;
}

.label-table {
    position: absolute;
    top: 10px; /* 顶部预留边界，适当增大 */
    left: 10px; /* 左侧预留边界，适当增大 */
    width: calc(98% - 20px); /* 宽度缩小2% */
    height: calc(98% - 48px); /* 高度缩小2% */
    border: 3px solid #000; /* 加粗边框，增加50% */
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px; /* 统一表格字体大小 */
    background: transparent; /* 透明背景 */
    box-sizing: border-box; /* 确保边框包含在尺寸内 */
    margin: 0;
    padding: 0;
}

.label-table td {
    border: 3px solid #000; /* 加粗边框，与表格边框一致，增加50% */
    padding: 0;
    vertical-align: middle;
    text-align: center;
    box-sizing: border-box; /* 确保边框包含在尺寸内 */
}

/* 标题行样式 */
.title-row {
    border: none !important; /* 取消标题行框线 */
}

.title-row td {
    border: none !important; /* 取消标题行单元格框线 */
}

.title-cell {
    background: transparent; /* 透明背景 */
    font-weight: bold;
    font-size: 16px; /* 增大字体大小，与其他字体一致 */
    height: 24px; /* 适当增加标题行高度 (3mm * 8点/毫米) */
    text-align: center;
    box-sizing: border-box;
    font-family: 'SimSun', '仿宋体', serif;
    border: none !important; /* 取消单元格框线 */
}

/* 标签列样式 */
.label-cell {
    background: transparent; /* 透明背景 */
    font-weight: bold;
    width: 20%; /* 固定宽度，与图片一致 */
    font-size: 16px !important; /* 增大字体大小20% (13px * 1.2 = 15.6px，取整为16px) */
    text-align: center;
    height: 24px; /* 适当增加行高，与其他行一致 (3mm * 8点/毫米) */
    box-sizing: border-box;
    font-family: 'SimSun', '仿宋体', serif;
}

/* 值列样式 */
.value-cell {
    background: transparent; /* 透明背景 */
    color: #000;
    font-size: 18px !important; /* 增大字体大小，使其更大 */
    font-family: 'SimSun', '仿宋体', serif;
    text-align: left;
    padding: 0 3px; /* 保持内边距 */
    height: 28px; /* 适当增加行高，适应更大的字体 */
    box-sizing: border-box;
}

/* 第六行（维保日期和有效期限） */
.label-table tr:nth-child(6) td {
    height: 28px; /* 调整行高，适应更大的字体 */
}

.label-table tr:nth-child(6) .label-cell {
    width: 20%; /* 固定宽度 */
}

.label-table tr:nth-child(6) .value-cell {
    width: 30%; /* 固定宽度 */
}

/* 第七行和第八行（维保单位、使用区域和二维码） */
.label-table tr:nth-child(7) td,
.label-table tr:nth-child(8) td {
    height: 28px; /* 适当增加行高，适应更大的字体 */
}

.label-table tr:nth-child(7) .label-cell,
.label-table tr:nth-child(8) .label-cell {
    width: 20%; /* 固定宽度 */
}

.label-table tr:nth-child(7) .value-cell,
.label-table tr:nth-child(8) .value-cell {
    width: 60%; /* 固定宽度，留出二维码空间 */
}

/* 确保使用区域标签单元格有正确的右侧边框 */
.label-table tr:nth-child(8) .label-cell {
    border-right: 3px solid #000 !important;
}

/* 确保合并单元格有正确的右侧边框 */
.label-table tr:nth-child(7) .value-cell,
.label-table tr:nth-child(8) .value-cell {
    border-right: 3px solid #000 !important;
}

/* 二维码列样式 */
.qr-cell {
    background: transparent; /* 透明背景 */
    width: 20%; /* 固定宽度，与图片一致 */
    text-align: center;
    vertical-align: middle;
    padding: 0;
    position: relative; /* 确保定位上下文 */
    z-index: 1; /* 确保在最上层 */
    box-sizing: border-box;
}

/* 二维码占位符 */
.qr-placeholder {
    width: 100%;
    height: 100%;
    min-height: 80px; /* 二维码最小高度 */
    background: transparent; /* 透明背景，避免遮挡 */
    border: none; /* 移除边框，避免遮挡 */
    border-radius: 0; /* 移除圆角 */
    color: #666;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible; /* 允许二维码显示 */
    position: relative;
}

.qr-placeholder img {
    width: 90% !important; /* 二维码宽度，填充满二维码区域 */
    height: 90% !important; /* 二维码高度，填充满二维码区域 */
    object-fit: contain; /* 保持比例 */
    position: absolute;
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 居中对齐 */
    z-index: 10; /* 确保二维码在最上层 */
}

/* 底部信息样式 */
.footer-info {
    width: calc(100% - 16px); /* 宽度减去左右边界 */
    height: 24px; /* 底部信息高度 */
    background: transparent; /* 透明背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    font-size: 14px; /* 字体大小调整 */
    color: #000000; /* 深色文字，提高对比度 */
    font-weight: normal;
    box-sizing: border-box;
    position: absolute;
    bottom: 8px; /* 向下贴住标签底部 (1mm * 8点/毫米) */
    left: 8px; /* 左侧预留边界 (1mm * 8点/毫米) */
    line-height: 24px; /* 行高，与高度一致 */
    font-family: 'SimSun', '仿宋体', serif;
    overflow: hidden; /* 防止文字溢出 */
    white-space: nowrap; /* 禁止文字换行 */
}

.footer-left {
    text-align: left;
    font-size: 14px; /* 字体大小，与footer-info一致 */
    font-family: 'SimSun', '仿宋体', serif;
    flex: 1; /* 弹性布局 */
    overflow: hidden; /* 防止文字溢出 */
    text-overflow: ellipsis; /* 文字溢出时显示省略号 */
}

.footer-right {
    text-align: right;
    font-size: 14px; /* 字体大小，与footer-info一致 */
    font-family: 'SimSun', '仿宋体', serif;
    flex: 1; /* 弹性布局 */
    overflow: hidden; /* 防止文字溢出 */
    text-overflow: ellipsis; /* 文字溢出时显示省略号 */
    transform: translateX(-10%); /* 向左移动10% */
}

/* 确保第十行底部边框显示，但移除左右边框 */
.label-table tr:last-child td {
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #000 !important; /* 保留底部边框 */
}

.footer-left {
    float: left;
    text-align: left;
}

.footer-right {
    float: right;
    text-align: right;
}



/* 打印机选择样式 - 桌面端水平布局 */
.printer-selection {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.printer-selection label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.printer-select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.printer-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-info {
    background: #17a2b8;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* 设备列表样式 */
.list-container h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid #28a745;
    padding-bottom: 10px;
}

/* 标签列表界面设备卡片样式调整 - 更紧凑的高度 */
.list-container .device-card {
    padding: 10px;
}

.list-container .device-header {
    margin-bottom: 8px;
}

.list-container .device-info {
    margin-bottom: 10px;
}

.list-container .device-info-left p {
    margin: 3px 0;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.device-list {
    display: grid;
    gap: 15px;
}

.device-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.device-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.device-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.device-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-normal {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-fault {
    background: #f8d7da;
    color: #721c24;
}

.status-notified {
    background: #ffeaa7;
    color: #d63031;
}

.device-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.device-info-left {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
}

.device-info-right {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-container {
    width: 100px;
    height: 100px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    border-color: #007bff;
    background: #e7f3ff;
}

.qr-code-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
    width: 100%;
    height: 100%;
}

.qr-code-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
}

.qr-code-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.device-info-left p {
    margin: 5px 0;
    font-size: 14px;
    display: block;
    width: 100%;
}

.device-info strong {
    color: #495057;
}

/* 确保标签内容文字固定为黑色，不随状态变化 */
.device-info p,
.device-info p strong,
.maintenance-container .device-info p,
.maintenance-container .device-info p strong {
    color: #333333 !important;
    font-size: 16px !important;
}

.device-info-left p,
.device-info-left p strong {
    color: #333333 !important;
    font-size: 16px !important;
}

/* 维保管理页面设备卡片样式 - 无操作按钮 */
.maintenance-container .device-card {
    border-left: 4px solid #ffc107; /* 默认黄色 */
}

/* 根据状态显示不同的左边框颜色 */
.maintenance-container .device-card.status-normal {
    border-left: 4px solid #28a745; /* 正常 - 绿色 */
}

.maintenance-container .device-card.status-pending {
    border-left: 4px solid #ffc107; /* 即将到期 - 黄色 */
}

.maintenance-container .device-card.status-fault {
    border-left: 4px solid #dc3545; /* 已过期 - 红色 */
}

.maintenance-container .device-card.status-notified {
    border-left: 4px solid #fd7e14; /* 已通知 - 橙色 */
}

.maintenance-container .device-card .device-header {
    margin-bottom: 8px;
}

.maintenance-container .device-card .device-info {
    margin-bottom: 0;
}

/* 维保管理样式 */
.maintenance-container h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid #ffc107;
    padding-bottom: 10px;
}

.maintenance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-card.clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.stat-card.clickable:hover::before {
    left: 100%;
}

.stat-card.clickable:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.stat-card.clickable:hover h3,
.stat-card.clickable:hover span {
    color: white;
}

.stat-card h3 {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-card span {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
}

.maintenance-list {
    display: grid;
    gap: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    /* 移动端标题背景适配 */
    .header {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .username-display {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .btn-logout {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .main-content {
        padding: 20px;
        border-radius: 10px;
    }
    
    /* 移动端改为上下布局 */
    .form-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 移动端移除独立背景，使用主内容背景 */
    .form-section,
    .preview-section {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        border-radius: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        min-width: auto;
    }
    
    .device-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .device-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .device-info-left {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .device-info-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .qr-code-container {
        width: 80px;
        height: 80px;
    }
    
    .maintenance-stats {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    /* 移动端标签列表页面适配 */
    .list-container {
        padding: 0;
    }
    
    .list-container h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* 移动端维保管理页面适配 */
    .maintenance-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 15px;
        text-align: center;
        border-radius: 8px;
    }
    
    .stat-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .stat-card span {
        font-size: 1.5rem;
    }
    
    .maintenance-list {
        gap: 10px;
    }
    
    /* 移动端设备卡片优化 */
    .device-card {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    /* 移动端搜索栏优化 */
    .search-bar {
        margin-bottom: 15px;
    }
    
    .search-bar input {
        font-size: 14px;
    }
    
    /* 移动端标签预览适配 */
    .label-preview {
        width: 100%;
        max-width: 392px; /* 280px * 1.4 = 392px (等比例放大40%) */
        height: auto;
        min-height: 280px; /* 200px * 1.4 = 280px (等比例放大40%) */
        margin: 20px auto;
        transform: scale(0.9); /* 稍微缩小以适应屏幕 */
    }
    
    .label-content {
        width: 100%;
        height: 100%;
    }
    
    /* 移动端底部提示文字适配 */
    .footer-info {
        font-size: 14px; /* 缩小字体以适应移动设备 */
        height: 24px;
        line-height: 24px;
    }
    
    .footer-left,
    .footer-right {
        font-size: 14px; /* 缩小字体以适应移动设备 */
    }
    
    /* 移动端预览容器优化 */
    .preview-container h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    /* 移动端打印机选择区域优化 */
    .printer-selection {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
        align-items: stretch;
    }
    
    .printer-selection label {
        text-align: center;
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .printer-select {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .printer-selection .btn-info {
        width: 100%;
        margin-top: 5px;
    }
    
    /* 移动端打印控制区域优化 */
    .print-controls {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .print-quantity {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .print-quantity label {
        font-weight: 600;
    }
    
    .quantity-input {
        width: 100px;
        text-align: center;
    }
    
    .print-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    /* 超小屏幕标题适配 */
    .header {
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .main-content {
        padding: 15px;
        border-radius: 8px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .device-card {
        padding: 15px;
    }
    
    /* 超小屏幕维保管理页面适配 */
    .maintenance-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-card h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .stat-card span {
        font-size: 1.3rem;
    }
    
    /* 超小屏幕标签列表适配 */
    .list-container h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    /* 超小屏幕标签预览进一步优化 */
    .label-preview {
        max-width: 100%;
        margin: 15px auto;
        transform: scale(0.8); /* 进一步缩小以适应小屏幕 */
        width: 392px; /* 280px * 1.4 = 392px (等比例放大40%) */
        height: 280px; /* 200px * 1.4 = 280px (等比例放大40%) */
    }
    
    /* 超小屏幕底部提示文字进一步优化 */
    .footer-info {
        font-size: 12px; /* 进一步缩小字体以适应超小屏幕 */
        height: 20px;
        line-height: 20px;
        padding: 0 4px;
    }
    
    .footer-left,
    .footer-right {
        font-size: 12px; /* 进一步缩小字体以适应超小屏幕 */
    }
    
    /* 超小屏幕预览容器优化 */
    .preview-container h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    /* 超小屏幕表单优化 */
    .form-container h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 本月维保弹窗样式 */
.month-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.month-filter label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.month-filter select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.month-filter select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.monthly-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.monthly-summary p {
    margin: 0;
    font-size: 16px;
    color: #1976d2;
    font-weight: 500;
}

.monthly-maintenance-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.monthly-maintenance-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
}

.monthly-maintenance-item:last-child {
    border-bottom: none;
}

.monthly-maintenance-item:hover {
    background-color: #f8f9fa;
}

.monthly-maintenance-item .device-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.monthly-maintenance-item .device-info p {
    margin: 2px 0;
    font-size: 14px;
    color: #495057;
}

.monthly-maintenance-item .device-info strong {
    color: #2c3e50;
    font-weight: 600;
}

.monthly-maintenance-item .maintenance-date {
    flex-shrink: 0;
    width: 120px;
    text-align: center;
    padding: 8px 12px;
    background: #e8f5e8;
    border-radius: 6px;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 500;
}

.monthly-maintenance-item .status-badge {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.monthly-maintenance-item .status-normal {
    background: #d4edda;
    color: #155724;
}

.monthly-maintenance-item .status-pending {
    background: #fff3cd;
    color: #856404;
}

.monthly-maintenance-item .status-expired {
    background: #f8d7da;
    color: #721c24;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .month-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .month-filter select {
        width: 100%;
    }
    
    .monthly-maintenance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .monthly-maintenance-item .device-info {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .monthly-maintenance-item .maintenance-date,
    .monthly-maintenance-item .status-badge {
        width: 100%;
        text-align: left;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .header,
    .nav,
    .form-container,
    .preview-container h3,
    .btn {
        display: none;
    }
    
    .main-content {
        background: white;
        box-shadow: none;
        padding: 0;
    }
    
    .label-preview {
        border: 2px solid #000;
        margin: 0;
        background: white !important; /* 打印时使用白色背景 */
    }
    
    .label-content {
        max-width: none;
    }
    
    /* 确保打印时所有文字都是黑色 */
    .label-footer,
    .footer-left,
    .footer-right {
        color: #000 !important;
        font-weight: normal !important;
    }
    
    /* 确保表格内容打印清晰 */
    .label-table td {
        color: #000 !important;
    }
}


/* 打印控制区域样式 */
.print-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px; /* 减少顶部边距 */
    padding: 12px; /* 减少内边距 */
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.print-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.print-quantity label {
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.quantity-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    background: white;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.print-btn {
    flex: 1;
    max-width: 150px;
    padding: 10px 16px;
    font-size: 13px;
    justify-content: center;
    align-items: center;
}

/* 临期灭火器通知弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fff !important;
    margin: 5% auto !important;
    padding: 0 !important;
    border-radius: 15px;
    width: 90% !important;
    max-width: 600px !important;
    min-width: 300px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}


@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header h3 i {
    margin-right: 10px;
    color: #fff;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 录入页 新增/修改 弹窗内输入框（与通知弹窗统一风格） */
.form-input-modal-input {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    margin-top: 8px;
}

.form-input-modal-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

#formInputModalLabel {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.expiry-list {
    max-height: 300px;
    /* 取消滑动条 */
}

.expiry-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer; /* 添加鼠标指针样式 */
}

.expiry-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 添加悬停阴影效果 */
}

/* 已过期设备样式 */
.expired-item {
    background: #ffe6e6;
    border-color: #ff6b6b;
}

.expired-item:hover {
    background: #ffcccc;
}

.expired-item .expiry-item-status {
    color: #d63031;
    font-weight: bold;
}

/* 即将到期设备样式 */
.expiring-item {
    background: #fff3cd;
    border-color: #ffc107;
}

.expiring-item:hover {
    background: #ffeaa7;
}

.expiring-item .expiry-item-status {
    color: #f39c12;
    font-weight: bold;
}

.expiry-item-info {
    flex: 1;
}

.expiry-item-code {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.expiry-item-unit {
    color: #666;
    margin-top: 5px;
    font-size: 0.95rem;
}

.expiry-item-days {
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

.modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer .btn-primary {
    background: #007bff;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* 筛选弹窗样式 */
.filter-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.filter-summary p {
    margin: 0;
    color: #495057;
    font-weight: 500;
}

.filtered-device-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.filtered-device-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filtered-device-item:last-child {
    border-bottom: none;
}

.filtered-device-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

/* 简化版设备列表样式 */
.filtered-device-header {
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 1fr;
    gap: 15px;
    align-items: center;
    font-weight: bold;
    color: #495057;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
}

.header-code, .header-unit, .header-dates, .header-status {
    text-align: center;
}

.header-code {
    text-align: left;
}

.filtered-device-item.simplified {
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 1fr;
    gap: 15px;
    align-items: center;
    font-size: 0.9rem;
}

.filtered-device-item.simplified:hover {
    background: #f8f9fa;
    transform: translateX(3px);
}

.device-code {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem;
}

.device-unit {
    color: #495057;
    font-size: 0.9rem;
}

.device-dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
    color: #6c757d;
}

.maintenance-date::before {
    content: "维保: ";
    color: #999;
}

.validity-date::before {
    content: "到期: ";
    color: #999;
}

/* 用户管理样式 - 与其他标签页统一样式 */
.user-management-container {
    /* 与其他容器保持一致，不需要额外padding，因为main-content已有padding */
}

.user-management-container h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid #6c757d; /* 用户管理使用灰色边框 */
    padding-bottom: 10px;
}

.user-management-container .muted {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

/* 操作栏样式 - 与搜索栏保持一致 */
.user-management-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* 所有用户列表 - 使用与设备列表一致的样式 */
.all-users-list,
.pending-users-list {
    display: grid;
    gap: 15px;
}

.user-item,
.pending-user-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #6c757d; /* 用户管理使用灰色左边框 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.user-item:hover,
.pending-user-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.user-item-info {
    flex: 1;
    min-width: 200px;
}

.user-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.user-item-header strong {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.user-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-status.status-admin {
    background: #fff3cd;
    color: #856404;
}

.user-status.status-pending {
    background: #d1ecf1;
    color: #0c5460;
}

.user-status.status-authorized {
    background: #d4edda;
    color: #155724;
}

.user-status.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.user-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.user-remark {
    margin-left: 10px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #856404;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 1px solid #ffc107;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.25);
    display: inline-flex;
    align-items: center;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-remark i {
    margin-right: 6px;
    color: #b38600;
    flex-shrink: 0;
}

.remark-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-top: 8px;
    box-sizing: border-box;
}

.remark-input:focus {
    outline: none;
    border-color: #17a2b8;
}

.user-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
}

/* 编辑/添加备注按钮与续期、删除同尺寸，覆盖 .btn-info 的 width:100% */
.user-item-actions .btn-info.btn-sm {
    width: auto;
    font-size: 13px;
    font-weight: 500;
}

.pending-user-info {
    flex: 1;
}

.pending-user-info strong {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.pending-user-info .muted {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    font-style: normal;
}

.pending-user-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.input-field {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    width: 100px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #007bff;
}

/* 消息提示样式 */
.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    display: none;
    font-size: 14px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 密码修改区域 - 使用卡片样式 */
.change-pwd-section {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #6c757d;
}

.change-pwd-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.3rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.form-inline .input-field {
    flex: 1;
    min-width: 150px;
}

/* 普通用户资料编辑界面样式 */
.user-info-edit-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    min-width: 120px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item label i {
    color: #6c757d;
    width: 20px;
}

.info-value {
    flex: 1;
    color: #2c3e50;
    font-size: 15px;
}

.info-edit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.info-edit .info-value {
    flex: 1;
}

.device-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.filtered-device-info {
    flex: 1;
}

.filtered-device-code {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.filtered-device-details {
    color: #666;
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.filtered-device-details span {
    display: block;
}

.filtered-device-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.filtered-device-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.no-filtered-devices {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.no-filtered-devices i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 统一所有行的值列字体大小 */
.label-table .value-cell {
    font-size: 14px !important; /* 统一所有值列字体大小 */
}

/* 确保第6行（维保日期和有效期限）的样式正确 */
.label-table tr:nth-child(6) td {
    height: 24px !important; /* 与其他行一致 */
}

.label-table tr:nth-child(6) .label-cell {
    font-size: 16px !important; /* 标签列字体大小，与其他标签列一致 */
}

/* 确保第7、8行（使用区域）的样式正确 */
.label-table tr:nth-child(7) td,
.label-table tr:nth-child(8) td {
    height: 28px !important; /* 与其他行一致 */
}

/* 确保第9、10行（维保单位）的样式正确 */
.label-table tr:nth-child(9) td,
.label-table tr:nth-child(10) td {
    height: 28px !important; /* 与其他行一致 */
}

/* 账户管理弹窗样式 */