/* ========== 设备安全期限到期警示栏 + 徽章 ========== */
/* ========== 设备安全期限到期警示栏 ========== */
.expiry-alert-bar {
    margin: 12px 20px 0 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ff6b35;
    background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(255,193,7,0.05));
    animation: expiryPulse 2s ease-in-out infinite;
}

@keyframes expiryPulse {
    0%, 100% { border-color: #ff6b35; box-shadow: 0 0 8px rgba(255,107,53,0.2); }
    50% { border-color: #ff3d00; box-shadow: 0 0 16px rgba(255,61,0,0.35); }
}

.expiry-alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
}

.expiry-alert-icon {
    font-size: 20px;
    animation: shake 1.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.expiry-alert-title {
    font-size: 15px;
    font-weight: 700;
    color: #ff5722;
    text-shadow: 0 0 2px rgba(255,87,34,0.15);
}

.expiry-alert-count {
    background: #ff3d00;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.expiry-alert-toggle {
    margin-left: auto;
    font-size: 13px;
    color: #ff6b35;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.expiry-alert-toggle:hover {
    color: #ff3d00;
    text-decoration: underline;
}

.expiry-alert-body {
    padding: 0 16px 12px 16px;
    max-height: 320px;
    overflow-y: auto;
}

.expiry-alert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expiry-alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid;
}

.expiry-item-expired {
    background: rgba(244,67,54,0.12);
    border-left-color: #f44336;
}

.expiry-item-critical {
    background: rgba(255,61,0,0.10);
    border-left-color: #ff3d00;
}

.expiry-item-warning {
    background: rgba(255,152,0,0.10);
    border-left-color: #ff9800;
}

.expiry-item-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.expiry-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.expiry-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expiry-item-meta {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expiry-item-text {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.expiry-item-expired .expiry-item-text { color: #d32f2f; }
.expiry-item-critical .expiry-item-text { color: #ff3d00; }
.expiry-item-warning .expiry-item-text { color: #e65100; }

/* ========== 设备表格安全期限徽章 ========== */
.expiry-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.expiry-expired {
    background: #f44336;
    color: #fff;
    animation: badgeBlink 1.5s ease-in-out infinite;
}

.expiry-critical {
    background: #ff3d00;
    color: #fff;
    animation: badgeBlink 1.5s ease-in-out infinite;
}

.expiry-warning {
    background: #ff9800;
    color: #fff;
}

.expiry-notice {
    background: #ffd54f;
    color: #5d4037;
}

.expiry-safe {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

@keyframes badgeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
