/* 상단 공통 버튼(이벤트 히스토리 · 알람 설정 · 로그아웃)과 이름 바꾸기 버튼 */
.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 12px);
    margin-right: clamp(12px, 1.875vw, 28px);
}

.header-logout-form {
    margin: 0;
    display: flex;
}

.header-action-btn {
    font-family: Inter, sans-serif;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    line-height: 1;
    padding: clamp(7px, 0.7vw, 10px) clamp(10px, 1.1vw, 16px);
    border-radius: 999px;
    border: 1px solid #c9d2e0;
    background: #ffffff;
    color: #2b3a55;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.header-action-btn:hover {
    background: #eef3fb;
    border-color: #9fb3d4;
}

.header-logout-btn {
    color: #6b7280;
}

/* 실시간 모니터링 상단(어두운 배경)에서는 흰 테두리 버튼 */
.detail-header .header-action-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.detail-header .header-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.detail-header .header-logout-btn {
    color: #d7deea;
}

/* 이름 아래 줄: [이름 바꾸기] (마지막 체크 : n분 전) */
.detail-header-left .status-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(4px, 0.8vh, 10px);
}

.detail-header-left .status-sub .last-check {
    margin-top: 0;
}

.header-rename-btn {
    font-family: Inter, sans-serif;
    font-size: clamp(10px, 0.95vw, 13px);
    font-weight: 700;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
}

.header-rename-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

@media (max-width: 768px) {
    .header-actions {
        gap: 4px;
        margin-right: 8px;
    }

    .header-action-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
}
